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

Support Apple Silicon Mac #163

Closed
cielavenir opened this issue Nov 22, 2020 · 1 comment
Closed

Support Apple Silicon Mac #163

cielavenir opened this issue Nov 22, 2020 · 1 comment

Comments

@cielavenir
Copy link
Contributor

As the further work of #162 , in https://github.com/cielavenir/isa-l/tree/fix_mach , I was able to assemble aarch64 code for Apple Silicon Mac.
I needed slight modification but the assembled Android binary still works.
However, although I believe the (modified) Android code path and Apple Silicon Mac code path should be the same, Apple Silicon code path raises Bus error.

I suppose Apple Silicon Mac demand will be rising.


How I tested my work:

make -f Makefile.unx CC=arm64-apple-darwin-gcc AR=arm64-apple-darwin-ar arch=aarch64 host_cpu=aarch64 DEFINES="-fno-stack-check" lib programs/igzip -j8

where

arm64-apple-darwin-gcc
XCODE=$HOME/Downloads/Xcode.app
SYSROOT=$XCODE/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
$XCODE/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -isysroot $SYSROOT -arch arm64 "$@"

arm64-apple-darwin-ar
XCODE=$HOME/Downloads/Xcode.app
SYSROOT=$XCODE/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
$XCODE/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar "$@"
@cielavenir
Copy link
Contributor Author

I was able to fix the bus error here, so now it will be converted into PR.

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

No branches or pull requests

1 participant