Skip to content

SDK (windows): the NATIVE tools sub-build is not a cross build (#2473) - #3447

Merged
ehartford merged 1 commit into
mainfrom
sdk-windows-native-not-cross
Nov 19, 2026
Merged

ehartford merged 1 commit into
mainfrom
sdk-windows-native-not-cross

Conversation

@ehartford

@ehartford ehartford commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2473.

The Windows SDK's LLVM build passes CMAKE_SYSTEM_NAME to LLVM's NATIVE tools sub-build through CROSS_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 from CMAKE_SYSTEM_NAME only when it is not already defined (CMakeDetermineSystem.cmake in 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.

@ehartford
ehartford force-pushed the sdk-windows-native-not-cross branch from b28a663 to 529616d Compare November 19, 2026 03:14
@ehartford
ehartford marked this pull request as ready for review November 19, 2026 03:14
@ehartford
ehartford merged commit acab88d into main Nov 19, 2026
@ehartford
ehartford deleted the sdk-windows-native-not-cross branch November 19, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sdk-llvm windows-x86_64: nested NATIVE configure cannot find -lunwind

1 participant