Skip to content

Commit b779c3f

Browse files
author
bors-servo
authored
Auto merge of #36 - fitzgen:expand-build-instructions, r=emilio
Expand the build instructions when using llvm 3.9 r? @emilio
2 parents 2d94347 + aaaf4f7 commit b779c3f

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,29 @@ with more features (such as detection of inlined functions).
3333
# pacman -S clang clang-tools-extra
3434
```
3535

36+
### Building clang 3.9
37+
38+
Follow the instructions here: http://clang.llvm.org/get_started.html
39+
40+
Those instructions list optional steps. For bindgen:
41+
42+
* Checkout and build clang
43+
* Checkout and build the extra-clang-tools
44+
* Checkout and build the compiler-rt
45+
* You do not need to checkout or build libcxx
46+
3647
## Building
3748

3849
```
3950
$ cargo build --features llvm_stable
4051
```
4152

42-
If you want a build with extra features (llvm 3.9) then you can just use:
53+
If you want a build with extra features (llvm 3.9) then you can use:
4354

4455
```
45-
$ cargo build
56+
$ LIBCLANG_PATH=path/to/clang-3.9/build/lib \
57+
LD_LIBRARY_PATH=path/to/clang-3.9/build/lib \
58+
cargo build
4659
```
4760

4861
# Command Line Usage

0 commit comments

Comments
 (0)