about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-08-30 18:59:26 +0200
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>2017-09-17 21:41:45 +0200
commitab018c76e14b87f3c9e0b7384cc9b02d94779cd5 (patch)
tree190874457ed007f526e58b1c5dd31656592c5d49 /src/libstd
parentf0b5402283f131f04132d77babecc41949fe35c8 (diff)
downloadrust-ab018c76e14b87f3c9e0b7384cc9b02d94779cd5.tar.gz
rust-ab018c76e14b87f3c9e0b7384cc9b02d94779cd5.zip
Add a file to trivially disable tool building or testing
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/build.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libstd/build.rs b/src/libstd/build.rs
index ebf07eb0423..19ea25fc7df 100644
--- a/src/libstd/build.rs
+++ b/src/libstd/build.rs
@@ -15,7 +15,7 @@ extern crate gcc;
 
 use std::env;
 use std::process::Command;
-use build_helper::{run, native_lib_boilerplate};
+use build_helper::{run, native_lib_boilerplate, BuildExpectation};
 
 fn main() {
     let target = env::var("TARGET").expect("TARGET was not set");
@@ -97,11 +97,14 @@ fn build_libbacktrace(host: &str, target: &str) -> Result<(), ()> {
                 .env("CC", compiler.path())
                 .env("AR", &ar)
                 .env("RANLIB", format!("{} s", ar.display()))
-                .env("CFLAGS", cflags));
+                .env("CFLAGS", cflags),
+        BuildExpectation::None);
 
     run(Command::new(build_helper::make(host))
                 .current_dir(&native.out_dir)
                 .arg(format!("INCDIR={}", native.src_dir.display()))
-                .arg("-j").arg(env::var("NUM_JOBS").expect("NUM_JOBS was not set")));
+                .arg("-j").arg(env::var("NUM_JOBS").expect("NUM_JOBS was not set")),
+        BuildExpectation::None);
+
     Ok(())
 }