Skip to content

Commit

Permalink
windres also needs the PATH workaround, because it runs gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Marlow committed Aug 24, 2007
1 parent bb276c3 commit 1c3d448
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compiler/main/SysTools.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -528,12 +528,15 @@ runWindres :: DynFlags -> [Option] -> IO ()
runWindres dflags args = do
let (gcc,gcc_args) = pgm_c dflags
windres = pgm_windres dflags
runSomething dflags "Windres" windres
mb_env <- getGccEnv gcc_args
runSomethingFiltered dflags id "Windres" windres
-- we must tell windres where to find gcc: it might not be on PATH
(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
-- we must use the PATH workaround here too, since windres invokes gcc
mb_env
touch :: DynFlags -> String -> String -> IO ()
touch dflags purpose arg =
Expand Down

0 comments on commit 1c3d448

Please sign in to comment.