DUB specify version identifier on command line?
XavierAP via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Mar 8 01:48:49 PST 2017
On Wednesday, 8 March 2017 at 02:15:00 UTC, Nicholas Wilson wrote:
> Setting version identifiers is done by the `-version=ident`
> command line flag (this is equivalent to `version = ident` at
> source level) .
> This should therefore be settable by the "dflags" dub
> configuration setting.
>
> The way I would do it would be to have a custom configuration
> that sets "dflags" : [ "other normal flags", "-version=
> MemoryDebug"]
>
> and then build the MemoryDebug dub configuration.
>
> Hope that makes sense.
Yes... Although I was looking for a command line parameter for
dub, not dmd, but apparently it's impossible. So thanks for
pointing to the DFLAGS possibility, it has worked. :) I still
prefer this for building different versions rather than changing
the dub.json file every time. Thanks!
More information about the Digitalmars-d-learn
mailing list