SHARE
TWEET

Untitled

a guest Dec 16th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. docker run -it --rm $(pwd):/workdir multiarch/crossbuild bash
  2.  
  3. cat > macbuild.sh <<EOF
  4. #!/bin/bash
  5. export CROSS_TRIPLE="x86_64-apple-darwin"
  6.  
  7. # Have to set the minimum macos version here for thread-local vars
  8. exec crossbuild cc -mmacosx-version-min=10.7 "$@"
  9. EOF
  10.  
  11. chmod +x macbuild.sh
  12.  
  13. cat > .cargo/config <<EOF
  14. [target.x86_64-apple-darwin]
  15. linker = "/workdir/macbuild.sh"
  16. EOF
  17.  
  18. # Muck with the PATH so we can find dsymutil
  19. PATH=/usr/bin:/root/.cargo/bin/:/usr/x86_64-apple-darwin14/bin/ cargo build --target x86_64-apple-darwin
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top