a guest Dec 16th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- docker run -it --rm $(pwd):/workdir multiarch/crossbuild bash
- cat > macbuild.sh <<EOF
- export CROSS_TRIPLE="x86_64-apple-darwin"
- # Have to set the minimum macos version here for thread-local vars
- exec crossbuild cc -mmacosx-version-min=10.7 "$@"
- chmod +x macbuild.sh
- cat > .cargo/config <<EOF
- linker = "/workdir/macbuild.sh"
- # Muck with the PATH so we can find dsymutil
- PATH=/usr/bin:/root/.cargo/bin/:/usr/x86_64-apple-darwin14/bin/ cargo build --target x86_64-apple-darwin
RAW Paste Data