August 10, 2013 Re: Checking compiler versions | ||||
---|---|---|---|---|
| ||||
On Sat, Aug 03, 2013 at 11:09:08AM -0700, H. S. Teoh wrote: > What's the way to determine the version of the compiler being used to compile a program? > > I'm trying to make code compile with 2.063, that currently only works in git HEAD because of an improvement in Phobos. I'd like to be able to somehow version() the compatibility code out in versions later than 2.063 by checking the compiler version. [...] Nevermind, I just found the __VERSION__ identifier in the docs. T -- Valentine's Day: an occasion for florists to reach into the wallets of nominal lovers in dire need of being reminded to profess their hypothetical love for their long-forgotten. |
Copyright © 1999-2021 by the D Language Foundation