Skip to content

Instantly share code, notes, and snippets.

@fdr
Created December 28, 2012 08:49
Show Gist options
  • Save fdr/4396035 to your computer and use it in GitHub Desktop.
Save fdr/4396035 to your computer and use it in GitHub Desktop.
Building clang on Heroku
#!/bin/sh
set -ue
curl -qO http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz
curl -qO http://llvm.org/releases/3.2/clang-3.2.src.tar.gz
curl -qO http://llvm.org/releases/3.2/compiler-rt-3.2.src.tar.gz
tar -zxf llvm-3.2.src.tar.gz
tar -zxf clang-3.2.src.tar.gz
tar -zxf compiler-rt-3.2.src.tar.gz
mv clang-3.2.src llvm-3.2.src/tools/clang
mv compiler-rt-3.2.src llvm-3.2.src/projects/compiler-rt
mkdir build
cd build
../llvm-3.2.src/configure --prefix=/app/vendor --disable-docs
make -sj4
make install
@mattrajca
Copy link

Did you just run this with heroku run or is it part of a buildpack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment