Skip to content

Fix psm ARM64 Windows cross-compilation with clang-cl - #163

Merged
nagisa merged 2 commits into
rust-lang:masterfrom
konstin:konsti/psm-windows-arm64-clang-cl
Nov 21, 2026
Merged

nagisa merged 2 commits into
rust-lang:masterfrom
konstin:konsti/psm-windows-arm64-clang-cl

Conversation

@konstin

@konstin konstin commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

When cross-compiling from Linux to arm64 Windows with clang-cl, we need to preprocess aarch_aapcs64.s, even if clang-cl would look msvc-like. We add a check that when we aren't actually running MASM, we manually do the conversion from GLOBL(rust_psm_stack_direction) into .globl rust_psm_stack_direction.

Fixes #164

@konstin
konstin marked this pull request as ready for review November 19, 2026 22:13
@nagisa
nagisa merged commit 40af685 into rust-lang:master Nov 21, 2026
198 of 202 checks passed
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.

Cross compilation with cargo-xwin from linux to aarch64 windows fails

2 participants