Skip to content

Allow cross-compiling arm64 assembly from x64 on Windows#383

Merged
davidchisnall merged 1 commit into
gnustep:masterfrom
will-velazquez:master
May 19, 2026
Merged

Allow cross-compiling arm64 assembly from x64 on Windows#383
davidchisnall merged 1 commit into
gnustep:masterfrom
will-velazquez:master

Conversation

@will-velazquez
Copy link
Copy Markdown
Contributor

Adds a check for CMAKE_ASM_COMPILER_TARGET to be set, similar to another similar check for CMAKE_CXX_COMPILER_TARGET.

When cross-compiling for ARM64, clang's -m64 targets x86_64, not ARM64, causing machine type conflicts at link time. When CMAKE_ASM_COMPILER_TARGET is set (e.g. aarch64-pc-windows-msvc from a toolchain file), pass --target= to the assembler instead.

@davidchisnall davidchisnall merged commit 018aea2 into gnustep:master May 19, 2026
179 of 182 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants