]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: add config.toml option to disable codegen tests
authorAlex Burka <durka42@gmail.com>
Sat, 3 Sep 2016 01:29:12 +0000 (01:29 +0000)
committerAlex Burka <durka42@gmail.com>
Sat, 3 Sep 2016 06:04:03 +0000 (06:04 +0000)
src/bootstrap/config.rs
src/bootstrap/config.toml.example

index 682a6f74126a8278555573a5743a057711cdc9eb..c1af7bd794cbfd625c84c8253b75fb7d5658f76e 100644 (file)
@@ -144,6 +144,7 @@ struct Rust {
     rpath: Option<bool>,
     optimize_tests: Option<bool>,
     debuginfo_tests: Option<bool>,
+    codegen_tests: Option<bool>,
 }
 
 /// TOML representation of how each build target is configured.
@@ -232,6 +233,7 @@ pub fn parse(build: &str, file: Option<PathBuf>) -> Config {
             set(&mut config.rust_optimize, rust.optimize);
             set(&mut config.rust_optimize_tests, rust.optimize_tests);
             set(&mut config.rust_debuginfo_tests, rust.debuginfo_tests);
+            set(&mut config.codegen_tests, rust.codegen_tests);
             set(&mut config.rust_rpath, rust.rpath);
             set(&mut config.debug_jemalloc, rust.debug_jemalloc);
             set(&mut config.use_jemalloc, rust.use_jemalloc);
index 2894adafef622dab873f3595bd264aaac1cfb004..ef24a948664f0511a73a30bb1412b7c6f19e77ab 100644 (file)
 #optimize-tests = true
 #debuginfo-tests = true
 
+# Flag indicating whether codegen tests will be run or not. If you get an error
+# saying that the FileCheck executable is missing, you may want to disable this.
+#codegen-tests = true
+
 # =============================================================================
 # Options for specific targets
 #