Skip to content

Commit 0efc4bf

Browse files
author
Alex Burka
committed
rustbuild: add config.toml option to disable codegen tests
1 parent 100b309 commit 0efc4bf

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
@@ -130,6 +130,10 @@
130130
#optimize-tests = true
131131
#debuginfo-tests = true
132132

133+
# Flag indicating whether codegen tests will be run or not. If you get an error
134+
# saying that the FileCheck executable is missing, you may want to disable this.
135+
#codegen-tests = true
136+
133137
# =============================================================================
134138
# Options for specific targets
135139
#

0 commit comments

Comments
 (0)