Re: Pass arguments at compile time

2018-06-13 Thread bauss via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 10:57:27 UTC, Malte wrote: I want to import a config file at compile time, but also need a way to have multiple configurations. With gcc you could do something like -DIMPORTFROM='"MyConfigFile.txt"'. Is there any equivalent in D? Hardcoding the config files for

Pass arguments at compile time

2018-06-13 Thread Malte via Digitalmars-d-learn
I want to import a config file at compile time, but also need a way to have multiple configurations. With gcc you could do something like -DIMPORTFROM='"MyConfigFile.txt"'. Is there any equivalent in D? Hardcoding the config files for different versions and using that is not an option.