[project @ 2003-06-12 16:25:31 by simonmar]
authorsimonmar <unknown>
Thu, 12 Jun 2003 16:25:31 +0000 (16:25 +0000)
committersimonmar <unknown>
Thu, 12 Jun 2003 16:25:31 +0000 (16:25 +0000)
Urk, don't quote/escape the command name on Windows, because the
compiler is exceedingly naughty and sometimes uses 'perl "..."' as the
command name.

ghc/compiler/main/SysTools.lhs

index a2f0d1d..505610c 100644 (file)
@@ -754,7 +754,7 @@ foreign import ccall unsafe "rawSystem"
 -- a single string.  Command-line parsing is done by the executable
 -- itself.
 rawSystem cmd args = do
-  let cmdline = translate cmd ++ concat (map ((' ':) . translate) args)
+  let cmdline = {-translate-} cmd ++ concat (map ((' ':) . translate) args)
   withCString cmdline $ \pcmdline -> do
     status <- throwErrnoIfMinus1 "rawSystem" (c_rawSystem pcmdline)
     case status of