diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-09-27 14:38:54 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-09-27 14:41:41 +0200 |
commit | 1a04499d11c673502b4d3178d8e7ea394dcd79b2 (patch) | |
tree | 431061da38ea017f212b0dc6acd019240a98cccc | |
parent | ad7e90f7af4cd7235249b6ef7ece707a0752b457 (diff) |
Add documentation for building with ports and LLVM 3.9
Fixes #64.
-rw-r--r-- | README.md | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -33,9 +33,27 @@ with more features (such as detection of inlined functions). # pacman -S clang clang-tools-extra ``` -### Building clang 3.9 +### Getting clang 3.9 -Follow the instructions here: http://clang.llvm.org/get_started.html +#### From a package manager + +Clang 3.9 has ben released about a month ago, and some package managers already +provide it. + +For example, for MacPorts: + +``` +$ port install clang-3.9 +$ LIBCLANG_PATH=/opt/local/libexec/llvm-3.9/lib \ + LD_LIBRARY_PATH=/opt/local/libexec/llvm-3.9/lib \ + cargo build +``` + +#### From source + +If your package manager doesn't yet offer Clang 3.9, you'll need to build from +source. For that, follow the instructions +[here](http://clang.llvm.org/get_started.html). Those instructions list optional steps. For bindgen: @@ -54,7 +72,7 @@ If you want a build with extra features (llvm 3.9) then you can use: ``` $ LIBCLANG_PATH=path/to/clang-3.9/build/lib \ - LD_LIBRARY_PATH=path/to/clang-3.9/build/lib \ + LD_LIBRARY_PATH=path/to/clang-3.9/build/lib \ cargo build ``` |