chore: Adjust emcc flags
This commit is contained in:
Родитель
f8be2bce59
Коммит
4f4833cbdd
|
@ -46,6 +46,9 @@
|
|||
<_WasmPInvokeModules Include="__Internal" />
|
||||
<_WasmPInvokeModules Include="@(WasmShellAdditionalPInvokeLibrary)" />
|
||||
|
||||
<!-- emcc methods compatibility -->
|
||||
<EmccExportedRuntimeMethod Include="@(WasmShellEmccExportedRuntimeMethod)" />
|
||||
|
||||
<!-- Native files compat -->
|
||||
<NativeFileReference Include="@(WasmShellNativeCompile)" />
|
||||
|
||||
|
@ -53,8 +56,16 @@
|
|||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<EmccFlags>$(EmccFlags);@(WasmShellExtraEmccFlags)</EmccFlags>
|
||||
|
||||
<WasmEnableThreads Condition=" '$(WasmShellEnableThreads)' == 'true' ">true</WasmEnableThreads>
|
||||
<WasmBuildNative Condition=" @(WasmShellAdditionalPInvokeLibrary->Count()) > 0 or @(NativeFileReference->Count()) > 0 OR @(_NativeAssetsFiltered->Count()) > 0">true</WasmBuildNative>
|
||||
|
||||
<WasmBuildNative Condition="
|
||||
@(WasmShellAdditionalPInvokeLibrary->Count()) > 0
|
||||
OR @(NativeFileReference->Count()) > 0
|
||||
OR @(_NativeAssetsFiltered->Count()) > 0
|
||||
OR @(EmccExportedRuntimeMethod->Count()) > 0
|
||||
">true</WasmBuildNative>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
<!-- Based on https://github.com/dotnet/runtime/issues/76077#issuecomment-1260231545 -->
|
||||
<WasmShellExtraEmccFlags Include="-s LEGACY_GL_EMULATION=1" />
|
||||
<WasmShellExtraEmccFlags Include="-s USE_CLOSURE_COMPILER=1" />
|
||||
|
||||
<WasmShellExtraEmccFlags Include="-lidbfs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(UseAOT)'=='true'">
|
||||
|
|
Загрузка…
Ссылка в новой задаче