Closed narimiran closed 1 month ago
I've cancelled this run since it will fail on windows and our CI is slightly overloaded :)
our CI is slightly overloaded
Ok, I'll delay pushing similar changes to other repos for tomorrow.
Fixed upstream: https://github.com/nim-lang/Nim/pull/19899
But it will take a while, in the meantime if defined(windows) and not defined(vcc):
With a comment to explain the workaround
(this is only needed in this repo since we test with vcc)
(this is only needed in this repo since we test with vcc)
I think better add "not vcc" in all repos - this is not something to research again
per discussion in #nim-opportunities, let's use .cfg
files for simple options
per discussion in #nim-opportunities, let's use
.cfg
files for simple options
Ok, done. (And I'll make the same change in other repos too)
So, this looks like it might need investigation on the nim side:
nim.cfg:
@if vcc
-d:testit
@end
test.nim:
when defined(testit):
{.error: "vcc in config".}
else:
{.error: "vcc not in config".}
nim c --cc:vcc -c test.nim
this prints "vcc not in config" on my (linux) nim
nim c --cc:vcc -r test.nim
It seems that --cc:...
is not picked up at all!
Because if I change the nim.cfg
to @if gcc: ...
it says Error: vcc in config
regardless of what I pass to --cc
.
Refs https://github.com/status-im/nimbus-build-system/issues/44