Repository navigation
SDK (windows): the NATIVE tools sub-build is not a cross build (#2473) - #3447
Merged
Merged
Conversation
… configures no NATIVE of its own (#2473)
ehartford
force-pushed
the
sdk-windows-native-not-cross
branch
from
November 19, 2026 03:14
b28a663 to
529616d
Compare
ehartford
marked this pull request as ready for review
November 19, 2026 03:14
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.
Closes #2473.
The Windows SDK's LLVM build passes
CMAKE_SYSTEM_NAMEto LLVM's NATIVE tools sub-build throughCROSS_TOOLCHAIN_FLAGS_NATIVE, so that sub-build called itself crosscompiling and configured a NATIVE of its own, which received none of the flags and failed its compiler check on-lunwind(SDK run 39211095782).The NATIVE sub-build is the host building tools for the host, so the flags now also say
-DCMAKE_CROSSCOMPILING=FALSE. CMake sets that variable fromCMAKE_SYSTEM_NAMEonly when it is not already defined (CMakeDetermineSystem.cmakein the pinned CMake 4.2.3), so no nested NATIVE is configured.Proof: SDK release run 44427897780 on this branch built SDK windows-x86_64 green, with darwin-aarch64, linux-x86_64 and linux-aarch64 (windows-aarch64 failed on its old seed, #2893, non-gating). Battery green on the branch tip over current main.