summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Hatake <cosmo0920.oucc@gmail.com>2015-05-06 02:44:45 +0900
committerHiroshi Hatake <cosmo0920.oucc@gmail.com>2015-05-06 02:58:19 +0900
commite473f1237b224eec62725b616544e4375f2c7ab1 (patch)
treee06ddaeab3cbdefbc221596522c6dbbc07bd69a3
parent40b62ebc9853b8feeaddce8cad972eebdb9f99a9 (diff)
Add architecture triples for Ubuntu and Debian based Linux
In Ubuntu and Debian based Linux, `libclang.so` is placed in `/usr/lib/x86_64-linux-gnu`.
-rw-r--r--build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 77c9e1d6..63fcf453 100644
--- a/build.rs
+++ b/build.rs
@@ -2,7 +2,7 @@ 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"];
+const LINUX_CLANG_DIRS: &'static [&'static str] = &["/usr/lib", "/usr/lib/llvm", "/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";
fn path_exists(path: &Path) -> bool {