mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-03-11 11:16:34 +01:00
add performbuild flag for dynamic executables
This commit is contained in:
parent
83c1007a3e
commit
26a5131a4c
@ -213,6 +213,7 @@ getPerformBuild buildFlags Settings {..} = PerformBuild
|
||||
, pbEnableTests = bfEnableTests buildFlags
|
||||
, pbEnableHaddock = bfEnableHaddock buildFlags
|
||||
, pbEnableLibProfiling = bfEnableLibProfile buildFlags
|
||||
, pbEnableExecDyn = bfEnableExecDyn buildFlags
|
||||
, pbVerbose = bfVerbose buildFlags
|
||||
, pbAllowNewer = bfSkipCheck buildFlags
|
||||
, pbGhcOptions = bfGhcOptions buildFlags
|
||||
|
||||
@ -52,6 +52,7 @@ getPerformBuild plan InstallFlags{..} =
|
||||
, pbEnableTests = ifEnableTests
|
||||
, pbEnableHaddock = ifEnableHaddock
|
||||
, pbEnableLibProfiling = ifEnableLibProfiling
|
||||
, pbEnableExecDyn = ifEnableExecDyn
|
||||
, pbVerbose = ifVerbose
|
||||
, pbAllowNewer = ifSkipCheck
|
||||
, pbGhcOptions = []
|
||||
|
||||
@ -67,6 +67,7 @@ data PerformBuild = PerformBuild
|
||||
, pbEnableTests :: Bool
|
||||
, pbEnableHaddock :: Bool
|
||||
, pbEnableLibProfiling :: Bool
|
||||
, pbEnableExecDyn :: Bool
|
||||
, pbVerbose :: Bool
|
||||
, pbAllowNewer :: Bool
|
||||
-- ^ Pass --allow-newer to cabal configure
|
||||
@ -321,6 +322,7 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
|
||||
tell' $ "--flags=" ++ flags
|
||||
when (pbEnableLibProfiling && pcEnableLibProfile) $
|
||||
tell' "--enable-library-profiling"
|
||||
when pbEnableExecDyn $ tell' "--enable-executable-dynamic"
|
||||
where
|
||||
tell' x = tell (x:)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user