Repository navigation
Allow wasm object files as input, even when WASM_OBJECT_FILES=0 is set - #8600
Conversation
d05e3ce to
d92e429
Compare
kripken
left a comment
There was a problem hiding this comment.
Is the opposite also true - can we mix wasm and bitcode files with WASM_OBJECT_FILES=1?
Please add some mention of this on the WASM_OBJECT_FILES section in src/settings.js (not sure where's a better place).
Please add a test here.
|
Yes. WASM_OBJECT_FILES at compile time means "please output a wasm object file". WASM_OBJECT_FILES at link time means "use libraries in the form of wasm object files". In the long run both of these should be replaced by some kind of LTO flag. |
|
While fixing this I found a bug in our LTO implementation. Fixed upstream: https://reviews.llvm.org/D61924. Will need to wait for the waterfall to get a clean build of that before this change can lang I think. |
Specifying WASM_OBJECT_FILES=0 on the link line is current needed if one want to select LTO libraries. However this should not exclude some input being wasm object files. Fixes #8599
d92e429 to
993c990
Compare
emscripten-core#8600) Specifying WASM_OBJECT_FILES=0 on the link line is current needed if one want to select LTO libraries. However this should not exclude some input being wasm object files. Fixes emscripten-core#8599
…=0 is set (emscripten-core#8600)" This reverts commit 4aa04c5.
…=0 is set (emscripten-core#8600)" This reverts commit 4aa04c5.
emscripten-core#8600) Specifying WASM_OBJECT_FILES=0 on the link line is current needed if one want to select LTO libraries. However this should not exclude some input being wasm object files. Fixes emscripten-core#8599
Specifying WASM_OBJECT_FILES=0 on the link line is current needed if
one want to select LTO libraries. However this should not exclude
some input being wasm object files.
Fixes #8599