www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Output predefined versions

reply Dan Cirnat <dan alt.md> writes:
Hi,

I'm debugging issues with conditionally compiled code and I'd 
like to know exactly which versions are predefined by my compiler 
(Linux LDC Aarch64)

Is there a quick way to check which ones are predefined?

[0] https://dlang.org/spec/version.html#predefined-versions
Mar 25 2020
parent reply kinke <noone nowhere.com> writes:
On Wednesday, 25 March 2020 at 17:22:51 UTC, Dan Cirnat wrote:
 Is there a quick way to check which ones are predefined?
Yes, just dummy-compile something with `-v` and check the line starting with `predefs`.
Mar 25 2020
parent Dan Cirnat <dan alt.md> writes:
On Wednesday, 25 March 2020 at 17:35:07 UTC, kinke wrote:

 Yes, just dummy-compile something with `-v` and check the line 
 starting with `predefs`.
Exactly what I need, thank you!
Mar 25 2020