]> git.lizzy.rs Git - rust.git/commitdiff
Transition Travis CI to use rustbuild.
authorCorey Farwell <coreyf@rwell.org>
Wed, 31 Aug 2016 23:10:24 +0000 (19:10 -0400)
committerCorey Farwell <coreyf@rwell.org>
Fri, 2 Sep 2016 16:48:55 +0000 (12:48 -0400)
.travis.yml
src/bootstrap/compile.rs

index 0abd858d8228baaf5daa76454e4fa76185154f39..c5d8a94f39b052df9b2a497047f55549c5c8a833 100644 (file)
@@ -15,9 +15,9 @@ before_install:
 script:
   - docker run -v `pwd`:/build rust
     sh -c "
-      ./configure --llvm-root=/usr/lib/llvm-3.7 &&
+      ./configure --enable-rustbuild --llvm-root=/usr/lib/llvm-3.7 &&
       make tidy &&
-      make check-notidy -j4
+      make check -j4
     "
 
 # Real testing happens on http://buildbot.rust-lang.org/
index 155848901cdb49c8919d1d77f9d0756f18328b4d..302ac68460c69cbf3c181befa10576b0c3349cc1 100644 (file)
@@ -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"));