Closed OldhamMade closed 6 years ago
Ah, this seems to be a duplicate of #6011, apologies.
Unrelated: --define:release
does not work in NimScript (only that specific define). I'd assume the same applies to .nimble too.
--define:release
does not work in NimScript (only that specific define)
It doesn't work when the script is run by the Nim compiler specifically (probably since -d:release
logic is in nim.cfg
, which is parsed before the NimScript can define anything). Since nimble
calls the nim
compiler directly, I don't see why it wouldn't work.
Duplicate of https://github.com/nim-lang/Nim/issues/6011
@kaushalmodi please note that, in this case, it is correct since we're using the C compiler. The result (when omitting --out
) is as expected. However, happy for this ticket to be closed since the issue is the same regardless of backend.
Given a nimble file containing the following:
When I run
nimble release
I see the following error:This is with
v0.19.0
.