Skip to content

Commit 5844486

Browse files
authored
[wasm] Add memalign to exported functions (#65316)
* [wasm] Add memalign to exported functions Fix #64724 and #64725 The tests were crashing because calling the memalign function, which was not exported. * Re-enable failing tests
1 parent 642db50 commit 5844486

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/libraries/tests.proj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
<ItemGroup Condition="'$(TargetOS)' == 'Browser' and '$(BuildAOTTestsOnHelix)' == 'true' and '$(RunDisabledWasmTests)' != 'true' and '$(RunAOTCompilation)' == 'true' and '$(BrowserHost)' == 'Windows'">
4242
<!-- https://github.com/dotnet/runtime/issues/61756 -->
4343
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.RegularExpressions\tests\System.Text.RegularExpressions.Tests.csproj" />
44-
<!-- https://github.com/dotnet/runtime/issues/64724 -->
45-
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.HostFactoryResolver\tests\Microsoft.Extensions.HostFactoryResolver.Tests.csproj" />
46-
<!-- https://github.com/dotnet/runtime/issues/64725 -->
47-
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.Logging\tests\Common\Microsoft.Extensions.Logging.Tests.csproj" />
4844
</ItemGroup>
4945

5046
<!-- Projects that don't support code coverage measurement. -->

src/mono/wasm/wasm.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<_EmccLinkFlags Include="-s FORCE_FILESYSTEM=1" />
7373
<_EmccLinkFlags Include="-s EXPORTED_RUNTIME_METHODS=&quot;['FS','print','ccall','cwrap','setValue','getValue','UTF8ToString','UTF8ArrayToString','FS_createPath','FS_createDataFile','removeRunDependency','addRunDependency']&quot;" />
7474
<!-- _htons,_ntohs,__get_daylight,__get_timezone,__get_tzname are exported temporarily, until the issue is fixed in emscripten, https://github.com/dotnet/runtime/issues/64724 -->
75-
<_EmccLinkFlags Include="-s EXPORTED_FUNCTIONS=_free,_malloc,_htons,_ntohs,__get_daylight,__get_timezone,__get_tzname" />
75+
<_EmccLinkFlags Include="-s EXPORTED_FUNCTIONS=_free,_malloc,_htons,_ntohs,__get_daylight,__get_timezone,__get_tzname,_memalign" />
7676
<_EmccLinkFlags Include="--source-map-base http://example.com" />
7777
<_EmccLinkFlags Include="-s STRICT_JS=1" />
7878
<_EmccLinkFlags Include="-s EXPORT_NAME=&quot;'createDotnetRuntime'&quot;" />

0 commit comments

Comments
 (0)