We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#![windows_subsystem = "windows"]
1 parent 3179a47 commit f25f4b4Copy full SHA for f25f4b4
1 file changed
src/tools/compiletest/src/runtest.rs
@@ -1645,6 +1645,11 @@ impl<'test> TestCx<'test> {
1645
if self.config.mode == TestMode::CodegenUnits {
1646
compiler.args(&["-Z", "human_readable_cgu_names"]);
1647
}
1648
+
1649
+ if self.config.mode == TestMode::DebugInfo && cfg!(target_os = "windows") {
1650
+ // Prevent debugger processes from creating new console windows.
1651
+ compiler.args(&["-Z", r#"crate-attr=windows_subsystem="windows""#]);
1652
+ }
1653
1654
1655
if self.config.optimize_tests && compiler_kind == CompilerKind::Rustc {
0 commit comments