[wasm] Exports cleanup (#86718)
authorRadek Doulik <radek.doulik@gmail.com>
Wed, 24 May 2023 21:05:45 +0000 (23:05 +0200)
committerGitHub <noreply@github.com>
Wed, 24 May 2023 21:05:45 +0000 (23:05 +0200)
Remove sections for old emscripten builds

src/mono/wasm/wasm.proj

index a63ceb8..921919a 100644 (file)
       <EmccExportedRuntimeMethod Include="addRunDependency" />
       <EmccExportedRuntimeMethod Include="addFunction" />
 
+      <EmccExportedFunction Include="_free" />
+      <EmccExportedFunction Include="_htons" />
       <EmccExportedFunction Include="_malloc" />
       <EmccExportedFunction Include="_memalign" />
-      <EmccExportedFunction Include="_htons" />
+      <EmccExportedFunction Include="_memset" />
       <EmccExportedFunction Include="_ntohs" />
+      <EmccExportedFunction Include="stackAlloc" />
+      <EmccExportedFunction Include="stackRestore" />
+      <EmccExportedFunction Include="stackSave"  />
     </ItemGroup>
     <!-- for the jiterpreter -->
     <ItemGroup>
       <EmccExportedFunction Include="_tanf" />
       <EmccExportedFunction Include="_tanhf" />
     </ItemGroup>
-    <!-- after 3.0 -->
-    <ItemGroup Condition="$([MSBuild]::VersionGreaterThan('$(_EmccVersion)', '3.0'))">
-      <EmccExportedFunction Include="_memset" />
-    </ItemGroup>
-    <!-- before 3.1.7 see https://github.com/dotnet/runtime/issues/64724 -->
-    <ItemGroup Condition="$([MSBuild]::VersionLessThan('$(_EmccVersion)', '3.1.7'))">
-      <EmccExportedFunction Include="__get_daylight" />
-      <EmccExportedFunction Include="__get_timezone" />
-      <EmccExportedFunction Include="__get_tzname" />
-      <EmccExportedFunction Include="g_free" />
-    </ItemGroup>
-    <!-- after 3.1.7 -->
-    <ItemGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(_EmccVersion)', '3.1.7'))">
-      <EmccExportedFunction Include="stackSave"  />
-      <EmccExportedFunction Include="stackRestore" />
-      <EmccExportedFunction Include="stackAlloc" />
-      <EmccExportedFunction Include="_free" />
-    </ItemGroup>
     <PropertyGroup>
       <_EmccExportedLibraryFunction>&quot;[@(EmccExportedLibraryFunction -> '%27%(Identity)%27', ',')]&quot;</_EmccExportedLibraryFunction>
       <_EmccExportedRuntimeMethods>&quot;[@(EmccExportedRuntimeMethod -> '%27%(Identity)%27', ',')]&quot;</_EmccExportedRuntimeMethods>