summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"];