-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[minor] strdefine value wrongly treated as its default value in some pragmas #12929
Comments
This was referenced Dec 19, 2019
To clarify, it uses the default value of |
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Apr 14, 2020
timotheecour
changed the title
[minor] strdefine value wrongly treated as empty in some pragmas
[minor] strdefine value wrongly treated as its default value in some pragmas
Apr 14, 2020
indeed; reworded title and sent a PR to fix it |
metagn
added a commit
to metagn/Nim
that referenced
this issue
Aug 28, 2023
Araq
pushed a commit
that referenced
this issue
Aug 28, 2023
narimiran
pushed a commit
that referenced
this issue
Apr 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in
const mylib {.strdefine.} = ""
, mylib is treated as empty in{.dynlib: mylib.}
even if it's set on cmd line with -d:mylib:bar;a use case for it came from here #12922 (comment)
I'm marking this as
[minor]
because there is a workaround, see belowExample
self-contained full example:
nim c -r -d:mylib:/tmp/libD20191219T022227.dylib main.nim
Current Output
Expected Output
works
Additional Information
recent devel 5848f00
workaround
The text was updated successfully, but these errors were encountered: