-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] AOT app build breaks with InvariantGlobalization=true
#48847
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsTo reproduce with master:
This fails with:
This seems to be caused by 3473d30d76a
It works before this commit, and breaks with it.
|
If I run the Invariant tests locally with
|
This is because src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs calls |
Tagging subscribers to this area: @CoffeeFlux Issue DetailsTo reproduce with master:
This fails with:
This seems to be caused by 3473d30d76a
It works before this commit, and breaks with it.
|
Yup, that appears to be it. If I removed that method the tests pass. |
Sound like aggressive trimming isn't preserving PlatformDetection members correctly when they are only accessed from the attribute? That might explain several problems. |
This isn't related to PlatformDetection, @radical was able to reproduce it in the console sample with native linking turned on. |
Interesting. For the invariant tests, I was able to pass if I completely removed the reflection from |
Disable the conditional inclusion to fix #48847 until we have a solution.
This is exactly why #49492 is needed, it isn't safe to completely condition on InvariantMode. Assuming that the platform check was properly retained, pinvoke-table.h would root GlobalizationNative_GetICUVersion and everything would function properly. Without #49492 you end up with missing symbols. |
To reproduce with master:
<InvariantGlobalization>true</InvariantGlobalization>
tosrc/mono/sample/wasm/console/Wasm.Console.Sample.csproj
,make clean build AOT=1
This fails with:
This seems to be caused by 3473d30d76a
It works before this commit, and breaks with it.
/cc @vargaz @lewing
The text was updated successfully, but these errors were encountered: