Skip to content

Conversation

@pr1metine
Copy link

Related to llvm-mos/llvm-mos#444. With this PR, the SDK will be bundled alongside an Apple Silicon build of LLVM-MOS. I.e., this PR produces llvm-mos-macos-arm64.tar.xz. This should exclusively Mach-O universal binaries, e.g., clang. They should be executable both on x86_64 and AArch64.

Please merge llvm-mos/llvm-mos#464 before this.

@pr1metine pr1metine marked this pull request as draft September 30, 2024 11:31
@pr1metine
Copy link
Author

Hmm, looks like the existing binary llvm-mos-macos.tar.xz is already a Mach-O universal binary.

@mysterymath
Copy link
Member

Hmm, looks like the existing binary llvm-mos-macos.tar.xz is already a Mach-O universal binary.

Interesting; does it contain both x86-64 and AArch64? If so, has anyone verified whether it runs natively on Apple Silicon?

@pr1metine
Copy link
Author

Yes and yes. Apparently, Apple Clang produces universal macOS binaries by default regardless of the host platform.

Besides, I just checked the latest MacOS release of llvm-mos-sdk. By running lipo, I can confirm that llvm-mos-sdk exclusively contains universal binaries. I was able to run them natively on my Apple Silicon MacBook.

@pr1metine
Copy link
Author

This makes building a separate binary for Apple Silicon largely obsolete. I will close this PR for now

@pr1metine pr1metine closed this Oct 1, 2024
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.

2 participants