Skip to content

Commit 56d9474

Browse files
authored
[mono][wasm] Avoid compiling llvm bitcode files with -emit-llvm. (#55630)
It causes the output to be a bitcode file as well, which is passed to the emscripten link step, which will compile it to wasm sequentially, slowing down linking. Fixes #54935.
1 parent 0a42d49 commit 56d9474

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/mono/wasm/build/WasmApp.Native.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218
<_EmccCFlags Include="-DLINK_ICALLS=1" Condition="'$(WasmLinkIcalls)' == 'true'" />
219219
<_EmccCFlags Include="-DCORE_BINDINGS" />
220220
<_EmccCFlags Include="-DGEN_PINVOKE=1" />
221+
<_EmccCFlags Include="-emit-llvm" />
221222

222223
<_EmccCFlags Include="&quot;-I%(_EmccIncludePaths.Identity)&quot;" />
223224
<_EmccCFlags Include="-g" Condition="'$(WasmNativeDebugSymbols)' == 'true'" />

src/mono/wasm/wasm.proj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
<_EmccCommonFlags Include="-s &quot;EXPORTED_RUNTIME_METHODS=['ccall', 'FS_createPath', 'FS_createDataFile', 'cwrap', 'setValue', 'getValue', 'UTF8ToString', 'UTF8ArrayToString', 'addFunction']&quot;" />
7070
<_EmccCommonFlags Include="-s &quot;EXPORTED_FUNCTIONS=['_putchar']&quot;" />
7171
<_EmccCommonFlags Include="--source-map-base http://example.com" />
72-
<_EmccCommonFlags Include="-emit-llvm" />
7372

7473
<_EmccCommonFlags Include="-s MODULARIZE=1" Condition="'$(WasmEnableES6)' != 'false'" />
7574
<_EmccCommonFlags Include="-s EXPORT_ES6=1" Condition="'$(WasmEnableES6)' != 'false'" />

0 commit comments

Comments
 (0)