This means the linker will be expecting them be undefined at link
time an will generate imports from the env module rather than
reporting undefined externals.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- Is this for static linking or dynamic linking? How were things linked before this?
- Is there any tests?
Comment Actions
(Virtually) talked in person and I have better context for this change now. It'd be better we can add a test for this.
Comment Actions
In emscripten we traditionally link with --allow-undefined which assumes that any/all undefined symbols get imported from the environment.
The motivation for this change is to allow us to remove that flag and have the linker report undefined symbols that are not explicitly marked in this way.
There will be plenty of tests for this on the emscripten side, but I can add one here if you prefer too?