summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJyun-Yan You <jyyou.tw@gmail.com>2015-08-24 08:43:16 +0800
committerJyun-Yan You <jyyou.tw@gmail.com>2015-08-24 08:43:16 +0800
commit6f34f158641b5eb69930295164cadbcd02e30749 (patch)
treea0a085d32f0ca00c1b675dc7333eff796b93b604
parent034c4e9fb4c5532151d11c376ed7bf7a35792e3c (diff)
parentcf66ef0fd8ee87afb07de9589809d1a15ab328dc (diff)
Merge pull request #221 from jdub/libclang-debian-search
Add Debian/Ubuntu locations to clang search paths
-rw-r--r--build.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 13ff411d..5bc92ed2 100644
--- a/build.rs
+++ b/build.rs
@@ -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"];