Skip to content

Commit 2034f77

Browse files
author
bors-servo
authored
Auto merge of rust-lang#65 - emilio:port-docs, r=metajack
Add documentation for building with ports and LLVM 3.9 Fixes rust-lang#64.
2 parents ad7e90f + 1a04499 commit 2034f77

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

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

36-
### Building clang 3.9
36+
### Getting clang 3.9
3737

38-
Follow the instructions here: http://clang.llvm.org/get_started.html
38+
#### From a package manager
39+
40+
Clang 3.9 has ben released about a month ago, and some package managers already
41+
provide it.
42+
43+
For example, for MacPorts:
44+
45+
```
46+
$ port install clang-3.9
47+
$ LIBCLANG_PATH=/opt/local/libexec/llvm-3.9/lib \
48+
LD_LIBRARY_PATH=/opt/local/libexec/llvm-3.9/lib \
49+
cargo build
50+
```
51+
52+
#### From source
53+
54+
If your package manager doesn't yet offer Clang 3.9, you'll need to build from
55+
source. For that, follow the instructions
56+
[here](http://clang.llvm.org/get_started.html).
3957

4058
Those instructions list optional steps. For bindgen:
4159

@@ -54,7 +72,7 @@ If you want a build with extra features (llvm 3.9) then you can use:
5472

5573
```
5674
$ LIBCLANG_PATH=path/to/clang-3.9/build/lib \
57-
LD_LIBRARY_PATH=path/to/clang-3.9/build/lib \
75+
LD_LIBRARY_PATH=path/to/clang-3.9/build/lib \
5876
cargo build
5977
```
6078

0 commit comments

Comments
 (0)