Skip to content

Commit 3a96fe3

Browse files
committed
Transition Travis CI to use rustbuild.
1 parent 824000a commit 3a96fe3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ before_install:
1515
script:
1616
- docker run -v `pwd`:/build rust
1717
sh -c "
18-
./configure --llvm-root=/usr/lib/llvm-3.7 &&
18+
./configure --enable-rustbuild --llvm-root=/usr/lib/llvm-3.7 &&
1919
make tidy &&
20-
make check-notidy -j4
20+
make check -j4
2121
"
2222
2323
# Real testing happens on http://buildbot.rust-lang.org/

src/bootstrap/compile.rs

+4
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ pub fn rustc<'a>(build: &'a Build, target: &str, compiler: &Compiler<'a>) {
203203
cargo.env("LLVM_RUSTLLVM", "1");
204204
}
205205
cargo.env("LLVM_CONFIG", build.llvm_config(target));
206+
let target_config = build.config.target_config.get(target);
207+
if let Some(s) = target_config.and_then(|c| c.llvm_config.as_ref()) {
208+
cargo.env("CFG_LLVM_ROOT", s);
209+
}
206210
if build.config.llvm_static_stdcpp {
207211
cargo.env("LLVM_STATIC_STDCPP",
208212
compiler_file(build.cxx(target), "libstdc++.a"));

0 commit comments

Comments
 (0)