Skip to content

Conversation

@pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Sep 3, 2025

  • change WasmNativeDebugSymbols default to false
  • when Debug and ``WasmBuildNative -> WasmNativeStrip defaults to `false` and `WasmNativeDebugSymbols` default to `true`
  • adopt [browser][AOT] faster wasm-opt in CI tests #115624 for WASI, no -g for WasmNativeStrip
  • make MT browser build to not fail the wasm extra pipeline

@pavelsavara pavelsavara added this to the 11.0.0 milestone Sep 3, 2025
@pavelsavara pavelsavara self-assigned this Sep 3, 2025
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Build-mono os-wasi Related to WASI variant of arch-wasm os-browser Browser variant of arch-wasm labels Sep 3, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@pavelsavara pavelsavara marked this pull request as ready for review September 9, 2025 12:55
Copilot AI review requested due to automatic review settings September 9, 2025 12:55
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a 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 WasmNativeDebugSymbols default from true to false
  • Adds conditional logic so that Debug configuration with WasmBuildNative=true enables debug symbols and disables stripping
  • Removes the -g flag for WASI builds when WasmNativeStrip is 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

@pavelsavara pavelsavara merged commit fbf63ac into dotnet:main Sep 9, 2025
45 of 47 checks passed
@pavelsavara pavelsavara deleted the browser_mt_soft_fail branch September 9, 2025 20:46
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Build-mono os-browser Browser variant of arch-wasm os-wasi Related to WASI variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants