On Wednesday, 12 February 2020 at 09:28:15 UTC, Simen Kjærås
wrote:
https://dlang.org/dmd-windows.html#switches
specifies that DMD may be passed a file on the command line
that contains compiler arguments and switches. This may be
freely combined with regular command line arguments if you so
wish.
So, you could have a file called 'versions' containing this:
# Setting 'Compress' version
-version=Compress
# Optionally set other versions
#-version=Foo
#-version=Bar
and feed it to dmd like so:
dmd -w -wi -g @versions -main foo.d
--
Simen
Ahh missed that, that should do it, thanks!