How can I specify flags for the compiler when --build=release in dub?

evilrat evilrat666 at gmail.com
Fri Jan 15 17:56:48 UTC 2021


On Friday, 15 January 2021 at 17:02:32 UTC, Jack wrote:
> is this possible? if so, how?

You can add extra options for for platform and compiler, and IIRC 
for build type too.

For example like this for lflags, it might complain about the 
order so just follow the instructions.

"lflags-debug"
"lflags-windows-debug"
"lflags-linux-ldc2-release"
"lflags-windows-x86_64-dmd-debug"


More information about the Digitalmars-d-learn mailing list