www.digitalmars.com         C & C++   DMDScript  

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

reply Jack <jckj33 gmail.com> writes:
is this possible? if so, how?
Jan 15 2021
parent evilrat <evilrat666 gmail.com> writes:
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"
Jan 15 2021