Skip to content

Commit de276a9

Browse files
committed
pass debug-assertions from the build env to the test env
1 parent b08625c commit de276a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/opt-dist/src/tests.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ change-id = 115898
7272
[rust]
7373
channel = "{channel}"
7474
verbose-tests = true
75+
debug-assertions = {debug_assertions}
7576
7677
[build]
7778
rustc = "{rustc}"
@@ -83,7 +84,8 @@ llvm-config = "{llvm_config}"
8384
"#,
8485
rustc = rustc_path.to_string().replace('\\', "/"),
8586
cargo = cargo_path.to_string().replace('\\', "/"),
86-
llvm_config = llvm_config.to_string().replace('\\', "/")
87+
llvm_config = llvm_config.to_string().replace('\\', "/"),
88+
debug_assertions = env.test_config().enable_debug_assertions,
8789
);
8890
log::info!("Using following `bootstrap.toml` for running tests:\n{config_content}");
8991

0 commit comments

Comments
 (0)