diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-08-23 18:17:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 18:17:30 -0500 |
commit | b779c3f9b5043e3723037b7fc0a05de1f3675b75 (patch) | |
tree | 07b00907f73b14e5d315a73a4731debe959cd68d /README.md | |
parent | 2d943478573dc85dddb232cf0e82908a5a4c00ea (diff) | |
parent | aaaf4f774ac7d85732d2247cffeae9a806a88d34 (diff) |
Auto merge of #36 - fitzgen:expand-build-instructions, r=emilio
Expand the build instructions when using llvm 3.9
r? @emilio
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -33,16 +33,29 @@ with more features (such as detection of inlined functions). # pacman -S clang clang-tools-extra ``` +### Building clang 3.9 + +Follow the instructions here: http://clang.llvm.org/get_started.html + +Those instructions list optional steps. For bindgen: + +* Checkout and build clang +* Checkout and build the extra-clang-tools +* Checkout and build the compiler-rt +* You do not need to checkout or build libcxx + ## Building ``` $ cargo build --features llvm_stable ``` -If you want a build with extra features (llvm 3.9) then you can just use: +If you want a build with extra features (llvm 3.9) then you can use: ``` -$ cargo build +$ LIBCLANG_PATH=path/to/clang-3.9/build/lib \ + LD_LIBRARY_PATH=path/to/clang-3.9/build/lib \ + cargo build ``` # Command Line Usage |