command line option or other method for determining the front end version of gdc
dan via D.gnu
d.gnu at puremagic.com
Sun Jul 24 10:59:29 PDT 2016
On Sunday, 24 July 2016 at 17:16:59 UTC, Iain Buclaw wrote:
> On 24 July 2016 at 19:00, dan via D.gnu <d.gnu at puremagic.com>
> wrote:
.....
>> However, i don't know what front end is compiled into gdc, so
>> i'm unclear on which front-end to try get an earlier version
>> of.
.....
>
> Later versions will write this out during compilation of a file
> under -v.
>
> $ gdc -v test.d
> # ...
> version v2.068.2
> # ...
>
> For earlier versions, there is a universal way to do it in code.
>
> pragma(msg, __VERSION__);
Thanks Iain, this works and gives me the right information.
For reference, including that pragma causes the version (such as
2066L or 2067L) to be emitted during compilation.
(And when i run it, i can see that 2067 is the offending version
so at least i know what to try to roll back to.)
dan
More information about the D.gnu
mailing list