* CodeGeneratorFromExpressionTest.cs: Added test for
[mono.git] / mcs / class / System / Microsoft.CSharp / CSharpCodeCompiler.cs
index 0339ef48d400f1ff14ccf80cd64371d4296a025d..986e2bd47301df983db04f72403409b01d8fd6ec 100644 (file)
@@ -152,9 +152,8 @@ namespace Mono.CSharp
                        // FIXME: these lines had better be platform independent.
                        if (Path.DirectorySeparatorChar == '\\') {
                                mcs.StartInfo.FileName = windowsMonoPath;
-                               mcs.StartInfo.Arguments = windowsMcsPath + ' ' + BuildArgs (options, fileNames);
-                       }
-                       else {
+                               mcs.StartInfo.Arguments = "\"" + windowsMcsPath + "\" " + BuildArgs (options, fileNames);
+                       } else {
 #if NET_2_0
                                // FIXME: This is a temporary hack to make code genaration work in 2.0
                                mcs.StartInfo.FileName="gmcs";