diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-09-02 15:28:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-02 15:28:51 -0700 |
| commit | 49125bd794932e9d444c1755051271a3e745eb21 (patch) | |
| tree | bc4720d0739dc96c78f7df9aa156bd7a21093cc3 /src | |
| parent | fa95551b9b1f9c802eaa0b8be02610cc78e0608a (diff) | |
| parent | 3a96fe32753f0308002e18d165f52d54e5ac64cb (diff) | |
Rollup merge of #36180 - frewsxcv:patch-33, r=alexcrichton
Transition Travis CI to use rustbuild.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/compile.rs | 4 |
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")); |
