From d225ee32742486a136a5d39606c24a6f9ec5c2b9 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 23 Aug 2007 02:19:14 +0000 Subject: [PATCH] Put a space between gcc and its arguments when calling windres --- compiler/main/SysTools.lhs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs index 92b8825..fe660ec 100644 --- a/compiler/main/SysTools.lhs +++ b/compiler/main/SysTools.lhs @@ -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 -- 1.7.10.4