about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-08-31 19:10:24 -0400
committerCorey Farwell <coreyf@rwell.org>2016-09-02 12:48:55 -0400
commit3a96fe32753f0308002e18d165f52d54e5ac64cb (patch)
tree02fe85b7e93982f9a2967064d8157f1c542846b1 /src/bootstrap
parent824000aee3b9fd594a3da3eb38462fa341f0fa81 (diff)
downloadrust-3a96fe32753f0308002e18d165f52d54e5ac64cb.tar.gz
rust-3a96fe32753f0308002e18d165f52d54e5ac64cb.zip
Transition Travis CI to use rustbuild.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/compile.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index 155848901cd..302ac68460c 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -203,6 +203,10 @@ pub fn rustc<'a>(build: &'a Build, target: &str, compiler: &Compiler<'a>) {
         cargo.env("LLVM_RUSTLLVM", "1");
     }
     cargo.env("LLVM_CONFIG", build.llvm_config(target));
+    let target_config = build.config.target_config.get(target);
+    if let Some(s) = target_config.and_then(|c| c.llvm_config.as_ref()) {
+        cargo.env("CFG_LLVM_ROOT", s);
+    }
     if build.config.llvm_static_stdcpp {
         cargo.env("LLVM_STATIC_STDCPP",
                   compiler_file(build.cxx(target), "libstdc++.a"));