This commit is contained in:
Jerome Laban 2024-09-03 10:29:24 -04:00
Родитель f8be2bce59
Коммит 4f4833cbdd
2 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -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'">