Skip to content

Instantly share code, notes, and snippets.

@d235j
Created June 5, 2018 20:13
Show Gist options
  • Save d235j/211250e0d8259bea726cc7345348476f to your computer and use it in GitHub Desktop.
Save d235j/211250e0d8259bea726cc7345348476f to your computer and use it in GitHub Desktop.
## OS X
You'll need Xcode and Homebrew for some of the extra packages that are needed to build everything. Otherwise things are much the same as on the Linux side -- hopefully. Adapt paths as necessary.
Externals-clasp and modifying bdw-gc are no longer necessary, as the issues have been worked around in clasp.
`LDFLAGS=-lffi` is necessary when using a Homebrew-provided LLVM due to a longstanding issue in `llvm-config`.
### Clasp itself
0. `brew install llvm@5 gmp bdw-gc boost libunwind-headers`
1. `git clone https://github.com/clasp-developers/clasp ~/clasp`
2. `cd ~/clasp && echo "LLVM_CONFIG_BINARY = '/usr/local/opt/llvm@5/bin/llvm-config'" > wscript.config`
3. `LDFLAGS=-lffi ./waf configure`
4. `LDFLAGS=-lffi ./waf build_cboehm`
If there are still problems - try reinstalling Xcode command line tools and start again.
Use: `xcode-select --install`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment