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

Support static linking with C backend (GCC) #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xrfez
Copy link

@xrfez xrfez commented Jan 5, 2023

Adds support for static linking with .o files compiled by g++. -d:cimguiStaticCgcc and --gcc.linkerexe:g++ need to be passed to nim. The cpp files will be compiled by g++ and saved to the nimcache directory. Passing a compatible linker to nim will allow it to properly link all .o files inside the nimcache directory.

Adds support for static linking with .o files compiled by g++.  `-d:cimguiStaticCgcc` and `--gcc.linkerexe:g++` need to be passed.  The cpp files will be compiled by g++ and saved to the nimcache directory.  Passing a compatible linker to nim will allow it to properly link all .o files inside the nimcache directory.
@xrfez
Copy link
Author

xrfez commented Jan 5, 2023

I need to follow up with edits to the generator and utils modules. But this is proof of concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant