mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-03-11 03:06:35 +01:00
add buildflags for dynamic executables
This commit is contained in:
parent
bc0e112824
commit
2c38a6fe9a
@ -41,6 +41,7 @@ data BuildFlags = BuildFlags
|
||||
, bfEnableHaddock :: !Bool
|
||||
, bfDoUpload :: !Bool
|
||||
, bfEnableLibProfile :: !Bool
|
||||
, bfEnableExecDyn :: !Bool
|
||||
, bfVerbose :: !Bool
|
||||
, bfSkipCheck :: !Bool
|
||||
, bfGhcOptions :: !String
|
||||
|
||||
@ -91,6 +91,9 @@ main =
|
||||
switch
|
||||
(long "enable-library-profiling" <>
|
||||
help "Enable profiling when building") <*>
|
||||
switch
|
||||
(long "enable-executable-dynamic" <>
|
||||
help "Enable dynamic executables when building") <*>
|
||||
switch
|
||||
(long "verbose" <> short 'v' <>
|
||||
help "Output verbose detail about the build steps") <*>
|
||||
|
||||
@ -92,6 +92,7 @@ basicBuild getPlans _ = do
|
||||
{ bfEnableTests = False
|
||||
, bfDoUpload = False
|
||||
, bfEnableLibProfile = False
|
||||
, bfEnableExecDyn = False
|
||||
, bfVerbose = False
|
||||
}
|
||||
|
||||
@ -117,6 +118,7 @@ shakeBuild getPlans _ = do
|
||||
BuildFlags {bfEnableTests = False
|
||||
,bfDoUpload = False
|
||||
,bfEnableLibProfile = False
|
||||
,bfEnableExecDyn = False
|
||||
,bfVerbose = False}
|
||||
|
||||
-- | Check build plan with the given package set getter.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user