]> git.lizzy.rs Git - rust.git/commitdiff
sysroot_flag is now used for more flags
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 14 Jun 2016 09:54:28 +0000 (11:54 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 14 Jun 2016 09:54:28 +0000 (11:54 +0200)
tests/compiletest.rs

index 0619c5a76561754d10e141bba37d3c6f029a486f..77cfc57db293d187f4c15b7863c7654cd5ac129d 100644 (file)
@@ -15,20 +15,20 @@ fn run_mode(mode: &'static str) {
             .expect("need to specify RUST_SYSROOT env var or use rustup or multirust")
             .to_owned(),
     };
-    let sysroot_flag = format!("--sysroot {} -Dwarnings", sysroot);
+    let flags = format!("--sysroot {} -Dwarnings", sysroot);
 
     // FIXME: read directories in sysroot/lib/rustlib and generate the test targets from that
     let targets = &["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"];
 
     for &target in targets {
         let mut config = compiletest::default_config();
-        config.host_rustcflags = Some(sysroot_flag.clone());
+        config.host_rustcflags = Some(flags.clone());
         config.mode = mode.parse().expect("Invalid mode");
         config.run_lib_path = format!("{}/lib/rustlib/{}/lib", sysroot, target);
         config.rustc_path = "target/debug/miri".into();
         config.src_base = PathBuf::from(format!("tests/{}", mode));
         config.target = target.to_owned();
-        config.target_rustcflags = Some(sysroot_flag.clone());
+        config.target_rustcflags = Some(flags.clone());
         compiletest::run_tests(&config);
     }
 }