Created
February 16, 2018 01:07
-
-
Save doublec/d4598ce955172306fef733f6e860b97f to your computer and use it in GitHub Desktop.
Building terralang from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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