Repository navigation
Use canonical CMake build type names in native builds - #138121
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The changes break Unix Ninja Multi-Config native-library configuration with an undefined build-type variable and omit required debug CRT dependencies from Checked IJW installations.
2 open issues
What changed in this PR
This PR standardizes native build configuration names, following the Apple Swift casing issue in #138038, while preserving case-insensitive configuration checks.
Changes:
- Pass canonical build types explicitly from the shared build script through the shell generator wrapper.
- Centralize CMake configuration normalization and align Rollup’s configuration and optimization selection.
- Select IJW debug CRT installation dependencies using the configuration being installed.
| File | Description |
|---|---|
src/native/rollup.config.defines.js |
Share one case-insensitive Release check. |
src/native/libs/CMakeLists.txt |
Reuse shared normalization and clarify supported build types. |
src/native/corehost/test/ijw/CMakeLists.txt |
Filter debug CRT installation by install configuration. |
eng/native/gen-buildsys.sh |
Forward explicit build-type arguments unchanged. |
eng/native/configurecompiler.cmake |
Centralize canonical cache choices and uppercase normalization. |
eng/native/build-commons.sh |
Pass the canonical build type explicitly to CMake. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
akoeplinger
force-pushed
the
akoeplinger-fix-cmake-build-type-casing
branch
from
November 23, 2026 11:43
4c9a88a to
20690d0
Compare
Open
3 tasks
This was referenced Nov 23, 2026
jkoritzinsky
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Follow-up to #138038, where an uppercase
CMAKE_BUILD_TYPEexposed a case-sensitive comparison in the Apple crypto Swift build.build-commons.shpass the canonical build type explicitly. Both generator wrappers now forward-DCMAKE_BUILD_TYPEunchanged.Built and linked
System.Security.Cryptography.Native.Applelocally with Ninja on macOS arm64 in both Debug and Release. The verbose build confirmedswiftc -Ononefor Debug andswiftc -Ofor Release.Focused CMake checks covered argument forwarding and overrides, mixed-case native library optimization flags, and Debug-only CRT installation with Ninja and Ninja Multi-Config. The unmodified zstd target built with the canonical Debug value, and a Node smoke check covered mixed-case Rollup settings. A native Windows IJW build was not run.
Note
This description was generated with GitHub Copilot.