Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nim.cfg syntax for --define:FOO:VAL undocumented or absent #12367

Closed
disruptek opened this issue Oct 6, 2019 · 2 comments
Closed

nim.cfg syntax for --define:FOO:VAL undocumented or absent #12367

disruptek opened this issue Oct 6, 2019 · 2 comments

Comments

@disruptek
Copy link
Contributor

I could not figure out how to add the following define syntax to my nim.cfg:

nim c -d:git2SetVer:0.28.3 some.nim

I tried many permutations with and without ", =, :. Maybe I missed the
magic incantation? The solution was to use config.nims thusly:

switch("define", "git2SetVer:0.28.3")
# fwiw this seems to be parsed identically
#switch("define", "git2SetVer=0.28.3")

Thanks to @leorize and @shashlick.

@Araq
Copy link
Member

Araq commented Oct 8, 2019

True and also patchFile has no equivalent, NimScript is the future of Nim's configuration system and nim.cfg a legacy. Unfortunately I nowadays like the old .cfg better.... :-(

disruptek added a commit to disruptek/Nim that referenced this issue Nov 6, 2019
@kaushalmodi
Copy link
Contributor

Unfortunately I nowadays like the old .cfg better.... :-(

Seems like I will the last standing user of config.nims ..

@Araq Araq closed this as completed in 5544a13 Nov 6, 2019
narimiran pushed a commit to narimiran/Nim that referenced this issue Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants