]> 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>
Thu, 31 May 2018 10:01:50 +0000 (12:01 +0200)
src/tools/compiletest/src/runtest.rs

index 5daf192e2db2ed2224d2520a74ba9c2de1645e2a..cc00f200171d88261db9d626de728b9fdaa01fb9 100644 (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))