Skip to content

Commit a139242

Browse files
authored
Rollup merge of #36234 - durka:disable-codegen-config, r=alexcrichton
rustbuild: add config.toml option to disable codegen tests Fixes #36232. I think it worked? Here's a build log where I tried to bootstrap, it crashed, then I added the setting to config.toml and it continued: https://gist.github.com/durka/cbf97cf04b8e065f1a2cfda4c1b6bf95 r? @alexcrichton
2 parents 4e31242 + 0efc4bf commit a139242

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/bootstrap/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ struct Rust {
144144
rpath: Option<bool>,
145145
optimize_tests: Option<bool>,
146146
debuginfo_tests: Option<bool>,
147+
codegen_tests: Option<bool>,
147148
}
148149

149150
/// TOML representation of how each build target is configured.
@@ -232,6 +233,7 @@ impl Config {
232233
set(&mut config.rust_optimize, rust.optimize);
233234
set(&mut config.rust_optimize_tests, rust.optimize_tests);
234235
set(&mut config.rust_debuginfo_tests, rust.debuginfo_tests);
236+
set(&mut config.codegen_tests, rust.codegen_tests);
235237
set(&mut config.rust_rpath, rust.rpath);
236238
set(&mut config.debug_jemalloc, rust.debug_jemalloc);
237239
set(&mut config.use_jemalloc, rust.use_jemalloc);

src/bootstrap/config.toml.example

+4
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
#optimize-tests = true
134134
#debuginfo-tests = true
135135

136+
# Flag indicating whether codegen tests will be run or not. If you get an error
137+
# saying that the FileCheck executable is missing, you may want to disable this.
138+
#codegen-tests = true
139+
136140
# =============================================================================
137141
# Options for specific targets
138142
#

0 commit comments

Comments
 (0)