]> git.lizzy.rs Git - rust.git/commitdiff
compiletest: escape CXX the same way as CC for MSVC
authorJohannes Nixdorf <mixi@exherbo.org>
Thu, 10 May 2018 08:58:51 +0000 (10:58 +0200)
committerJohannes Nixdorf <mixi@exherbo.org>
Fri, 11 May 2018 07:02:14 +0000 (09:02 +0200)
src/tools/compiletest/src/runtest.rs

index d1dac370c9ed954807df634de6ccc556515b8371..79c1deecd2c0fdae3666fac55711327dfc25bb5d 100644 (file)
@@ -2491,7 +2491,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))