about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJohannes Nixdorf <mixi@exherbo.org>2018-05-10 10:58:51 +0200
committerJohannes Nixdorf <mixi@exherbo.org>2018-05-11 09:02:14 +0200
commit490d05055abd36521abc41c2e551ac789820e80f (patch)
tree2e678f84d11e981a7246d1ef1ede47661a2efba3 /src
parentbd94bf5738c7a0fd148157831eabd1efede3b309 (diff)
compiletest: escape CXX the same way as CC for MSVC
Diffstat (limited to 'src')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index d1dac370c9e..79c1deecd2c 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -2491,7 +2491,7 @@ impl<'test> TestCx<'test> {
                 .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))