|
31 | 31 | <WasmEnableLegacyJsInterop Condition="'$(WasmEnableLegacyJsInterop)' == ''">true</WasmEnableLegacyJsInterop> |
32 | 32 | <WasmEnableJsInteropByValue Condition="'$(WasmEnableJsInteropByValue)' == '' and ( '$(WasmEnableThreads)' == 'true' or '$(MonoWasmBuildVariant)' == 'multithread' )">true</WasmEnableJsInteropByValue> |
33 | 33 | <WasmEnableJsInteropByValue Condition="'$(WasmEnableJsInteropByValue)' == ''">false</WasmEnableJsInteropByValue> |
34 | | - <WasmNativeDebugSymbols Condition="'$(WasmNativeDebugSymbols)' == ''">true</WasmNativeDebugSymbols> |
35 | 34 |
|
36 | 35 | <!-- Temporarily `false`, till sdk gets a fix for supporting the new file --> |
37 | 36 | <WasmEmitSymbolMap Condition="'$(WasmEmitSymbolMap)' == '' and '$(RunAOTCompilation)' != 'true'">false</WasmEmitSymbolMap> |
|
288 | 287 |
|
289 | 288 | <_EmccCommonFlags Include="$(_DefaultEmccFlags)" /> |
290 | 289 | <_EmccCommonFlags Include="$(EmccFlags)" /> |
291 | | - <_EmccCommonFlags Include="-g" Condition="'$(WasmNativeDebugSymbols)' == 'true'" /> |
| 290 | + <_EmccCommonFlags Include="-g" Condition="'$(WasmNativeStrip)' == 'false'" /> |
292 | 291 | <_EmccCommonFlags Include="-v" Condition="'$(EmccVerbose)' != 'false'" /> |
293 | 292 | <_EmccCommonFlags Include="-s DISABLE_EXCEPTION_CATCHING=0" Condition="'$(WasmEnableExceptionHandling)' == 'false'" /> |
294 | 293 | <_EmccCommonFlags Include="-fwasm-exceptions" Condition="'$(WasmEnableExceptionHandling)' == 'true'" /> |
|
317 | 316 | <_EmccCFlags Include="-emit-llvm" /> |
318 | 317 |
|
319 | 318 | <_EmccCFlags Include=""-I%(_EmccIncludePaths.Identity)"" /> |
| 319 | + <_EmccCFlags Include="-g" Condition="'$(WasmNativeDebugSymbols)' == 'true'" /> |
320 | 320 |
|
321 | 321 | <!-- Adding optimization flag at the top, so it gets precedence --> |
322 | 322 | <_EmccLDFlags Include="$(WasmLinkOptimizationFlag)" /> |
323 | 323 | <_EmccLDFlags Include="@(_EmccCommonFlags)" /> |
324 | | - <_EmccLDFlags Include="-s EXPORT_ES6=1" /> |
| 324 | + <_EmccLDFlags Include="-s EXPORT_ES6=1 -lexports.js" /> |
325 | 325 | <_EmccLDFlags Condition="'$(WasmEnableExceptionHandling)' != 'false'" Include="-s EXPORT_EXCEPTION_HANDLING_HELPERS=1" /> |
326 | 326 |
|
327 | 327 | <_RuntimeCDependencies Include="$(_WasmPInvokeHPath);$(_WasmICallTablePath)" /> |
|
0 commit comments