diff options
Diffstat (limited to 'mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs')
-rw-r--r-- | mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs b/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs index 0339ef48d40..8e5f1748c7b 100644 --- a/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs +++ b/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs @@ -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"; |