add buildflags for dynamic executables

This commit is contained in:
Tim Dysinger 2015-03-11 14:33:14 -10:00
parent bc0e112824
commit 2c38a6fe9a
3 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,7 @@ data BuildFlags = BuildFlags
, bfEnableHaddock :: !Bool
, bfDoUpload :: !Bool
, bfEnableLibProfile :: !Bool
, bfEnableExecDyn :: !Bool
, bfVerbose :: !Bool
, bfSkipCheck :: !Bool
, bfGhcOptions :: !String

View File

@ -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") <*>

View File

@ -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.