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

Expand --nimMainPrefix semantics #19950

Closed
wants to merge 1 commit into from

Conversation

quantimnot
Copy link
Contributor

@quantimnot quantimnot commented Jun 30, 2022

Expand --nimMainPrefix semantics to include prefixing these symbols
for the C, C++ and ObjC backends:

  • cmdCount
  • cmdLine
  • gEnv
  • PreMain
  • PreMainInner
  • NimMainInner
  • NimMainModule

Fixes #15955
Fixes #19830


PR State

I hadn't noticed #19934 before I made this to resolve some issues I had making some tests for #19925. I made a PR in haste and committed a merge conflict in my rush :(.

I have noticed that #19934 doesn't prefix gEnv, cmdCount, or cmdLine. I will update this PR to just handle those and add some tests. I'm currently running some tests on various platforms to understand the symbol visibility for the various platforms and backends.

Expand `--nimMainPrefix` semantics to include prefixing these symbols
for the C, C++ and ObjC backends:
* `cmdCount`
* `cmdLine`
* `gEnv`
* `PreMain`
* `PreMainInner`
* `NimMainInner`
* `NimMainModule`

Fixes nim-lang#15955
Fixes nim-lang#19830
@ringabout
Copy link
Member

ringabout commented Oct 22, 2022

Both #15955 and #19830 were fixed.

@ringabout ringabout closed this Oct 22, 2022
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

Successfully merging this pull request may close these issues.

multiple definition of in Nim generated static libraries Static linking with a .lib file not working
2 participants