diff options
author | Jyun-Yan You <jyyou.tw@gmail.com> | 2015-08-24 08:43:16 +0800 |
---|---|---|
committer | Jyun-Yan You <jyyou.tw@gmail.com> | 2015-08-24 08:43:16 +0800 |
commit | 6f34f158641b5eb69930295164cadbcd02e30749 (patch) | |
tree | a0a085d32f0ca00c1b675dc7333eff796b93b604 | |
parent | 034c4e9fb4c5532151d11c376ed7bf7a35792e3c (diff) | |
parent | cf66ef0fd8ee87afb07de9589809d1a15ab328dc (diff) |
Merge pull request #221 from jdub/libclang-debian-search
Add Debian/Ubuntu locations to clang search paths
-rw-r--r-- | build.rs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,7 +2,15 @@ use std::env; use std::fs; use std::path::Path; -const LINUX_CLANG_DIRS: &'static [&'static str] = &["/usr/lib", "/usr/lib/llvm", "/usr/lib64/llvm", "/usr/lib/x86_64-linux-gnu"]; +const LINUX_CLANG_DIRS: &'static [&'static str] = &[ + "/usr/lib", + "/usr/lib/llvm", + "/usr/lib/llvm-3.4/lib", + "/usr/lib/llvm-3.5/lib", + "/usr/lib/llvm-3.6/lib", + "/usr/lib64/llvm", + "/usr/lib/x86_64-linux-gnu", +]; const MAC_CLANG_DIR: &'static str = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib"; const WIN_CLANG_DIRS: &'static [&'static str] = &["C:\\Program Files\\LLVM\\bin", "C:\\Program Files\\LLVM\\lib"]; |