-
Notifications
You must be signed in to change notification settings - Fork 215
Fix shared library build and add test #113
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
Fix shared library build and add test #113
Conversation
`/wholearchive:` is the voodoo necessary for linker to include object files from a library that are otherwise not referenced. We need to include the bootstrapper because it has an initializer to initialize runtime that we depend on. I'm keeping the other workaround (`IlcProcessEntrypoint`) in place because we need it due to the `main`/`WinMain` schism for `OutputType=Exe/WinExe`.
|
Would it be better to add unresolved reference to runtime library (e.g. a dummy call in the runtime initialization) and satisfy it in the bootstrapper? It would make it work like it used to work before by accident. |
I'm indifferent about those options - turns out the |
src/coreclr/src/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.props
Outdated
Show resolved
Hide resolved
…ative.Windows.props
Ok, let's give the wholearchive approach a try. |
|
Superseded by #270. |
/wholearchive:is the voodoo necessary for linker to include object files from a library that are otherwise not referenced. We need to include the bootstrapper because it has an initializer to initialize runtime that we depend on.I'm keeping the other workaround (
IlcProcessEntrypoint) in place because we need it due to themain/WinMainschism forOutputType=Exe/WinExe.The test is from the CoreRT repo.