Skip to content
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][wasi] Throw error when WasmBuildNative is explicitly set to false during a single-file build #98087

Merged
merged 22 commits into from
Feb 21, 2024
Merged
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bddc91b
Add error when WasmBuildNative is explicitly false during single-file…
mkhamoyan Feb 7, 2024
7b578c4
Remove the space
mkhamoyan Feb 7, 2024
9e49413
Add WasmSingleFileBundle to _BoolPropertiesThatTriggerRelinking
mkhamoyan Feb 7, 2024
88fb7ed
Move common _BoolPropertiesThatTriggerRelinking to WasmApp.Common.tar…
mkhamoyan Feb 7, 2024
00af6dd
Implement general rule for WasmBuildNative=false
mkhamoyan Feb 8, 2024
dc06c88
Remove WasmBuildNative=false for trimmin tests
mkhamoyan Feb 9, 2024
2d848cb
Merge branch 'main' into wasi_error_message
mkhamoyan Feb 12, 2024
dd84cc5
import MonoAotCrossCompiler
mkhamoyan Feb 13, 2024
fd2cf9f
Revert back explicitly setting false WasmBuildNative
mkhamoyan Feb 13, 2024
1594192
Remove InvariantGlobalization from _BoolPropertiesThatTriggerRelinkin…
mkhamoyan Feb 13, 2024
5492af3
exclude invariantglobalization from error
mkhamoyan Feb 13, 2024
e458b88
Try to enable WasmBuildNative only for InvariantGlobalizationTrue tests
mkhamoyan Feb 14, 2024
9a61a09
Remove InvariantGlobalization from trigger relinking for browser
mkhamoyan Feb 14, 2024
10f820a
Move under target
mkhamoyan Feb 14, 2024
17bb799
disable trigger relinking for InvariantGlobalization
mkhamoyan Feb 14, 2024
71a7599
Move RemoveInvariantGlobalization to testing/linker templates
mkhamoyan Feb 15, 2024
810a970
Add space
mkhamoyan Feb 15, 2024
4716ecc
Add target RemoveInvariantGlobalization only for wasm
mkhamoyan Feb 15, 2024
4f53311
Fix syntax error
mkhamoyan Feb 15, 2024
4ce8ce6
Merge branch 'main' into wasi_error_message
lewing Feb 21, 2024
b6c55f4
Add test case
mkhamoyan Feb 21, 2024
3cf41b4
Update the test case
mkhamoyan Feb 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/mono/wasm/build/WasmApp.Common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,9 @@
'$(_IsToolchainMissing)' == 'true'"
Text="$(_ToolchainMissingErrorMessage) SDK is required for AOT'ing assemblies." />

<Error Condition="'$(WasmBuildNative)' == 'false' and '$(WasmSingleFileBundle)' == 'true'"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check need to run after _BoolPropertiesThatTriggerRelinking caused the change

Copy link
Contributor Author

@mkhamoyan mkhamoyan Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavelsavara could you please clarify why? _BoolPropertiesThatTriggerRelinking will only affect if $(WasmBuildNative)' == ''

<WasmBuildNative Condition="'$(WasmBuildNative)' == '' and
so it shouldn't change the check outcome.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, it never sets it to false.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but if users sets WasmBuildNative false and also sets something which would make it true via _BoolPropertiesThatTriggerRelinking we have broken combination.

Text="Building single-file requires a native build." />

<ItemGroup>
<_BoolPropertiesThatTriggerRelinking Include="InvariantTimezone" DefaultValueInRuntimePack="false" />
<_BoolPropertiesThatTriggerRelinking Include="InvariantGlobalization" DefaultValueInRuntimePack="false" />
Expand Down
Loading