Skip to content

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

Open
will-velazquez wants to merge 1 commit intognustep:masterfrom
will-velazquez:master
Open

Allow cross-compiling arm64 assembly from x64 on Windows#383
will-velazquez wants to merge 1 commit intognustep:masterfrom
will-velazquez:master

Conversation

@will-velazquez
Copy link
Copy Markdown

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.

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