Passing revision tag to the compiler

bearophile bearophileHUGS at lycos.com
Sat Mar 30 19:42:47 PDT 2013


Leandro Motta Barros:

> I'd like to include the version control revision tag in a 
> program. In
> the C/C++ world I'd make my build system call the compiler like 
> this:
>
>    g++ -D<MY_REVISION_HERE> .....

Take a look at -version=...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list