-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Replace lipo command line with fat-macho crate #405
Conversation
de41b12
to
bb640c6
Compare
bindir="$(xcode-select --print-path)/Toolchains/XcodeDefault.xctoolchain/usr/bin" | ||
echo "CC=${bindir}/clang" >> "${GITHUB_ENV}" | ||
echo "CXX=${bindir}/clang++" >> "${GITHUB_ENV}" | ||
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> "${GITHUB_ENV}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xcode 12.2 and later can compile to both x86_64 and arm64 targets on Intel & Apple Silicon platforms. I am not sure why xcode-select
alone does not work, had to setup CC
, CXX
etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall!
6365df1
to
a53fb1f
Compare
Thanks again! |
lipo
is only available on macOS as a command line tool, the fat-macho crate implemented a cross platform Mach-O fat binary writer, makes it easier to do cross compilation.Based on #404