Skip to content

Commit 665d667

Browse files
committed
compiletest: escape CXX the same way as CC for MSVC
1 parent 55dab7c commit 665d667

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
@@ -2529,7 +2529,7 @@ impl<'test> TestCx<'test> {
25292529
.env("IS_WINDOWS", "1")
25302530
.env("MSVC_LIB", format!("'{}' -nologo", lib.display()))
25312531
.env("CC", format!("'{}' {}", self.config.cc, cflags))
2532-
.env("CXX", &self.config.cxx);
2532+
.env("CXX", format!("'{}'", &self.config.cxx));
25332533
} else {
25342534
cmd.env("CC", format!("{} {}", self.config.cc, self.config.cflags))
25352535
.env("CXX", format!("{} {}", self.config.cxx, self.config.cflags))

0 commit comments

Comments
 (0)