Commit 9284d760 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Pass any additional gcc options through to gcc when calling hsc2hs

parent d6476de7
......@@ -357,6 +357,10 @@ ppHsc2hs bi lbi = standardPP lbi hsc2hsProgram $
[ "--cc=" ++ programPath gccProg
, "--ld=" ++ programPath gccProg ]
-- Additional gcc options
++ [ "--cflag=" ++ opt | opt <- programArgs gccProg ]
++ [ "--lflag=" ++ opt | opt <- programArgs gccProg ]
-- OSX frameworks:
++ [ what ++ "=-F" ++ opt
| isOSX
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment