Skip to content

[wasm] Fix debug build of AOT cross compiler - #122018

Merged
pavelsavara merged 1 commit into
dotnet:mainfrom
pavelsavara:wasm_mono_cross_debug
Nov 27, 2025
Merged

pavelsavara merged 1 commit into
dotnet:mainfrom
pavelsavara:wasm_mono_cross_debug

Conversation

@pavelsavara

Copy link
Copy Markdown
Member

Make debug version of cross compiler to link debug C runtime

reverts #50418
related #113536 pavelsavara@ee4c4d9#diff-96c540b134a40045501aeaaec0e57f7365c649e88e70dd70e65924704fd29585R16

@pavelsavara pavelsavara added this to the 11.0.0 milestone Nov 27, 2025
@pavelsavara pavelsavara self-assigned this Nov 27, 2025
Copilot AI review requested due to automatic review settings November 27, 2025 13:41
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Build-mono labels Nov 27, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes the debug build of the AOT cross compiler for WebAssembly on Windows by removing a property that was forcing Release configuration. This allows the debug cross compiler to correctly link against the debug C runtime instead of the release runtime.

Key Changes

  • Removes the _ForceRelease property that was conditionally forcing Release builds for Windows + wasm + Debug configurations
  • This enables proper debug build behavior including _DEBUG preprocessor definitions and CMAKE_BUILD_TYPE=Debug

@pavelsavara
pavelsavara merged commit febb6bd into dotnet:main Nov 27, 2025
@pavelsavara
pavelsavara deleted the wasm_mono_cross_debug branch November 27, 2025 16:17
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 28, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants