Skip to content

Building universal binaries (x86_64+arm64) on macOS #206

Answered by willend
nviolini asked this question in Q&A
Discussion options

You must be logged in to vote

@nviolini what toolchain are you using to build ncrystal (i.e. "bare macOS dev tools + cmake", a conda env, homebrew or something else)?

I tried myself using my "usual" conda setup - which however turned out to have an arm64-only libc.

I'have instead now installed CMake to /Applications and unloaded any "non-vanilla" systems and simply run CMake + developer tools - and this seems to work:

hostname:build username$ /Applications/CMake.app/Contents/bin/cmake  .. -DCMAKE_INSTALL_PREFIX=/../ncrystal_package -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- The C compiler identification is AppleClang 16.0.0.16000026
-- Detecting CXX com…

Replies: 15 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tkittel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #205 on November 22, 2024 09:50.