Skip to content

Expand the build instructions when using llvm 3.9 #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down