Skip to content

Instantly share code, notes, and snippets.

@doublec
Created February 16, 2018 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doublec/d4598ce955172306fef733f6e860b97f to your computer and use it in GitHub Desktop.
Save doublec/d4598ce955172306fef733f6e860b97f to your computer and use it in GitHub Desktop.
Building terralang from source
# Building Terralang (http://terralang.org/) from source
$ export BUILD_ROOT=`pwd`
# Build LLVM 3.9
$ git clone https://github.com/llvm-mirror/llvm --branch release_39
$ cd $(BUILD_ROOT)/llvm/tools
$ git clone https://github.com/llvm-mirror/clang --branch release_39
$ cd $(BUILD_ROOT)/llvm
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=$(BUILD_ROOT)/llvm-bin -DCMAKE_BUILD_TYPE=Release ..
$ make
$ make install
$ cd $(BUILD_ROOT)
# Build Terra
$ git clone https://github.com/zdevito/terra
$ cd terra
$ echo "LLVM_CONFIG = $(BUILD_ROOT)/llvm-bin/bin/llvm-config" >Makefile.inc
$ make
# Terra build is in the 'release' subdirectory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment