Another option for this was suggested here:

https://forum.dlang.org/post/qbvgboihhwcuqglyg...@forum.dlang.org

On Wednesday, 12 February 2020 at 09:28:15 UTC, Simen Kjærås wrote:
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


Reply via email to