-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[wasm] native build flags #119307
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] native build flags #119307
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing |
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
e00a5c4 to
344ef49
Compare
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR changes the default behavior for native build flags in WebAssembly (WASM) builds, making them more conservative by default while allowing debug builds with native builds enabled to use debug symbols.
Key changes:
- Changes
WasmNativeDebugSymbolsdefault fromtruetofalse - Adds conditional logic so that Debug configuration with
WasmBuildNative=trueenables debug symbols and disables stripping - Removes the
-gflag for WASI builds whenWasmNativeStripis disabled, adopting changes from PR #115624
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/mono/wasm/data/aot-tests/ProxyProjectForAOTOnHelix.proj | Removes explicit debug symbols and strip configuration to use new defaults |
| src/mono/wasm/build/WasmApp.Common.targets | Updates property group conditions to set debug symbols based on configuration and strip settings |
| src/mono/wasm/Wasm.Build.Tests/WasmNativeDefaultsTests.cs | Updates test expectations to match new default behavior for debug symbols |
| src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/FlagsChangeRebuildTest.cs | Fixes rebuild logic to account for CFLAGS changes triggering recompilation |
| src/mono/wasi/wasi.proj | Removes override setting WasmNativeStrip to false for CI builds |
| src/mono/wasi/build/WasiApp.targets | Removes default WasmNativeDebugSymbols setting and conditional -g flag |
| eng/testing/tests.wasm.targets | Consolidates WASM test configuration, moving AOT-specific settings here |
| eng/testing/tests.wasi.targets | Removes WASI-specific debugger support configuration |
| eng/testing/tests.browser.targets | Removes browser-specific AOT configuration, moved to common targets |
| eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml | Adds shouldContinueOnError flag for threading builds |
WasmNativeDebugSymbolsdefault tofalseDebugand ``WasmBuildNative ->WasmNativeStripdefaults to `false` and `WasmNativeDebugSymbols` default to `true`-gforWasmNativeStrip