Commit e4ae0eb2 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Don't redundantly pass programArgs in when calling programs.

That's already done by the Program framework so we were passing
those extra args in twice.
parent eea57172
......@@ -688,9 +688,6 @@ ghcOptions lbi bi odir
NoOptimisation -> []
NormalOptimisation -> ["-O"]
MaximumOptimisation -> ["-O2"])
++ (case lookupProgram ghcProgram (withPrograms lbi) of
Just p -> programArgs p
Nothing -> [])
++ hcOptions GHC bi
++ extensionsToFlags c (extensions bi)
where c = compiler lbi
......@@ -755,9 +752,9 @@ makefile pkg_descr lbi flags = do
("WAYS", (if withProfLib lbi then "p " else "") ++ (if withSharedLib lbi then "dyn" else "")),
("odir", builddir),
("package", packageIdStr),
("GHC_OPTS", unwords (
["-package-name", packageIdStr ]
++ ghcOptions lbi bi (buildDir lbi))),
("GHC_OPTS", unwords $ programArgs ghcProg
++ ["-package-name", packageIdStr ]
++ ghcOptions lbi bi (buildDir lbi)),
("MAKEFILE", file),
("C_SRCS", unwords (cSources bi)),
("GHC_CC_OPTS", unwords (ghcCcOptions lbi bi (buildDir lbi))),
......
......@@ -233,7 +233,6 @@ haddock pkg_descr lbi suffixes flags = do
++ cssFileFlag
++ linkToHscolour
++ packageFlags
++ programArgs confHaddock
++ verboseFlags
++ hideArgs
++ exportsFlags
......@@ -270,7 +269,6 @@ haddock pkg_descr lbi suffixes flags = do
, "--prologue=" ++ prologFileName ]
++ linkToHscolour
++ packageFlags
++ programArgs confHaddock
++ verboseFlags
++ exportsFlags
++ haddock2options bi preprocessDir
......
Supports Markdown
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