There was an error while loading. Please reload this page.
1 parent 36e4f5d commit e755d71Copy full SHA for e755d71
1 file changed
src/bootstrap/src/core/build_steps/test.rs
@@ -1942,6 +1942,17 @@ HELP: You can add it into `bootstrap.toml` in `rust.codegen-backends = [{name:?}
1942
);
1943
crate::exit!(1);
1944
}
1945
+
1946
+ifletCodegenBackendKind::Gcc = codegen_backend
1947
+ && builder.config.rustc_debug_assertions
1948
+{
1949
+eprintln!(
1950
+r#"WARNING: Running tests with the GCC codegen backend while rustc debug assertions are enabled. This might lead to test failures.
1951
+Please disable assertions with `rust.debug-assertions = false`.
1952
+ "#
1953
+);
1954
+}
1955
1956
// Tells compiletest that we want to use this codegen in particular and to override
1957
// the default one.
1958
cmd.arg("--override-codegen-backend").arg(codegen_backend.name());
0 commit comments