Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows arm64 support #83

Open
umlaeute opened this issue Jan 7, 2025 · 0 comments · May be fixed by #84
Open

Windows arm64 support #83

umlaeute opened this issue Jan 7, 2025 · 0 comments · May be fixed by #84

Comments

@umlaeute
Copy link
Contributor

umlaeute commented Jan 7, 2025

I've been playing a bit with building Pd and externals for the Windows/arm64 platform (Using MSYS2's preliminary arm64 support).

AFAICT things run smoothly (barring that the aarch64 VM is emulated somewhat slowly on an x86_64 host), except for pd-lib-builder misdetecting the target system as Linux.

I figure this is due to the unexpected value of the target.triplet:

$ make PDDIR="${PDDIR}" vars | grep -E "(target.triplet|system) ="
variable system = Linux
variable target.triplet = aarch64 w64 windows gnu

$ cc -dumpmachine
aarch64-w64-windows-gnu

$ cc --version
clang version 19.1.6
Target: aarch64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clangarm64/bin

$

the problem is obviously that cc -dumpmachine

The compiler is running natively on Windows (MSYS2/MinGW64), and I have no idea why it doesn't mention mingw.

Also, the dumpmachine information obviously uses 4 sections, so it is strictly speaking not a triplet. but i think this is specific to clang; e.g. on my Linux host clang -dumpmachine returns x86_64-pc-linux-gnu.

umlaeute added a commit that referenced this issue Jan 7, 2025
MSYS2/MinGW64/clangarm64 reports "aarch64-w64-windows-gnu" as the architecture...

Closes: #83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant