Skip to content

Instantly share code, notes, and snippets.

@Mabdelwanis
Forked from seia-soto/arm64e-linux.sh
Created March 14, 2021 16:12
Show Gist options
  • Save Mabdelwanis/ce228d788876b1097ca77ca019cc37cd to your computer and use it in GitHub Desktop.
Save Mabdelwanis/ce228d788876b1097ca77ca019cc37cd to your computer and use it in GitHub Desktop.
Installs sbinger's arm64e toolchain to allow arm64e compilation on Linux
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