-
-
Save Mabdelwanis/ce228d788876b1097ca77ca019cc37cd to your computer and use it in GitHub Desktop.
Installs sbinger's arm64e toolchain to allow arm64e compilation on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -LO https://github.com/sbingner/llvm-project/releases/download/v10.0.0-1/linux-ios-arm64e-clang-toolchain.tar.lzma | |
TMP=$(mktemp -d) | |
tar --lzma -xvf linux-ios-arm64e-clang-toolchain.tar.lzma -C $TMP | |
pushd $TMP/ios-arm64e-clang-toolchain/bin | |
find * ! -name clang-10 -and ! -name ldid -and ! -name ld64 -exec mv {} arm64-apple-darwin14-{} \; | |
find * -xtype l -exec sh -c "readlink {} | xargs -I{LINK} ln -f -s arm64-apple-darwin14-{LINK} {}" \; | |
popd | |
mkdir -p $THEOS/toolchain/linux/iphone | |
mv $TMP/ios-arm64e-clang-toolchain/* $THEOS/toolchain/linux/iphone/ | |
rm -rf $TMP linux-ios-arm64e-clang-toolchain.tar.lzma |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment