Skip to content

Commit 490d050

Browse files
committed
compiletest: escape CXX the same way as CC for MSVC
1 parent bd94bf5 commit 490d050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ impl<'test> TestCx<'test> {
24912491
.env("IS_WINDOWS", "1")
24922492
.env("MSVC_LIB", format!("'{}' -nologo", lib.display()))
24932493
.env("CC", format!("'{}' {}", self.config.cc, cflags))
2494-
.env("CXX", &self.config.cxx);
2494+
.env("CXX", format!("'{}'", &self.config.cxx));
24952495
} else {
24962496
cmd.env("CC", format!("{} {}", self.config.cc, self.config.cflags))
24972497
.env("CXX", format!("{} {}", self.config.cxx, self.config.cflags))

0 commit comments

Comments
 (0)