Sha256: b6a08f54e6497d1b2503a577ed406349b0b3313113c15a40eff3d59ede707610
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
#! /usr/bin/env bash set -o errexit set -o pipefail set -x git clone -q --depth=1 https://github.com/tpoechtrager/osxcross.git /opt/osxcross rm -rf /opt/osxcross/.git set +x cd /opt/osxcross/tarballs set -x curl -L -o MacOSX11.1.sdk.tar.xz https://github.com/larskanis/MacOSX-SDKs/releases/download/11.1/MacOSX11.1.sdk.tar.xz tar -xf MacOSX11.1.sdk.tar.xz -C . cp -rf /usr/lib/llvm-10/include/c++ MacOSX11.1.sdk/usr/include/c++ cp -rf /usr/include/x86_64-linux-gnu/c++/9/bits/ MacOSX11.1.sdk/usr/include/c++/v1/bits tar -cJf MacOSX11.1.sdk.tar.xz MacOSX11.1.sdk set +x cd /opt/osxcross set -x UNATTENDED=1 SDK_VERSION=11.1 OSX_VERSION_MIN=10.13 USE_CLANG_AS=1 ./build.sh ln -s /usr/bin/llvm-config-10 /usr/bin/llvm-config ENABLE_COMPILER_RT_INSTALL=1 SDK_VERSION=11.1 ./build_compiler_rt.sh rm -rf *~ build tarballs/* echo "export PATH=/opt/osxcross/target/bin:\$PATH" >> /etc/rubybashrc echo "export MACOSX_DEPLOYMENT_TARGET=10.13" >> /etc/rubybashrc echo "export OSXCROSS_MP_INC=1" >> /etc/rubybashrc # Add links to build tools without target version kind of: # arm64-apple-darwin-clang => arm64-apple-darwin20.1-clang rm -f /opt/osxcross/target/bin/*-apple-darwin-* find /opt/osxcross/target/bin/ -name '*-apple-darwin[0-9]*' | sort | while read f ; do d=`echo $f | sed s/darwin[0-9\.]*/darwin/`; echo $f '"$@"' | tee $d && chmod +x $d ; done # There's no objdump in osxcross but we can use llvm's ln -s /usr/lib/llvm-10/bin/llvm-objdump /opt/osxcross/target/bin/x86_64-apple-darwin-objdump ln -s /usr/lib/llvm-10/bin/llvm-objdump /opt/osxcross/target/bin/aarch64-apple-darwin-objdump
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rake-compiler-dock-1.3.0 | build/mk_osxcross.sh |