Put a space between gcc and its arguments when calling windres
authorIan Lynagh <igloo@earth.li>
Thu, 23 Aug 2007 02:19:14 +0000 (02:19 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 23 Aug 2007 02:19:14 +0000 (02:19 +0000)
compiler/main/SysTools.lhs

index 92b8825..fe660ec 100644 (file)
@@ -529,7 +529,8 @@ runWindres dflags args = do
   let (gcc,gcc_args) = pgm_c dflags
       windres        = pgm_windres dflags
   runSomething dflags "Windres" windres 
-        (Option ("--preprocessor=" ++ gcc ++ unwords (map showOpt gcc_args) ++
+        (Option ("--preprocessor=" ++ gcc ++ " " ++
+                                      unwords (map showOpt gcc_args) ++
                  " -E -xc -DRC_INVOKED")
          : args)
         -- we must tell windres where to find gcc: it might not be on PATH