compiletest: escape CXX the same way as CC for MSVC

This commit is contained in:
Johannes Nixdorf 2018-05-10 10:58:51 +02:00
parent 55dab7c820
commit 665d6673d5

View File

@ -2529,7 +2529,7 @@ fn run_rmake_test(&self) {
.env("IS_WINDOWS", "1")
.env("MSVC_LIB", format!("'{}' -nologo", lib.display()))
.env("CC", format!("'{}' {}", self.config.cc, cflags))
.env("CXX", &self.config.cxx);
.env("CXX", format!("'{}'", &self.config.cxx));
} else {
cmd.env("CC", format!("{} {}", self.config.cc, self.config.cflags))
.env("CXX", format!("{} {}", self.config.cxx, self.config.cflags))