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 , bfEnableHaddock :: !Bool
, bfDoUpload :: !Bool , bfDoUpload :: !Bool
, bfEnableLibProfile :: !Bool , bfEnableLibProfile :: !Bool
, bfEnableExecDyn :: !Bool
, bfVerbose :: !Bool , bfVerbose :: !Bool
, bfSkipCheck :: !Bool , bfSkipCheck :: !Bool
, bfGhcOptions :: !String , bfGhcOptions :: !String

View File

@ -91,6 +91,9 @@ main =
switch switch
(long "enable-library-profiling" <> (long "enable-library-profiling" <>
help "Enable profiling when building") <*> help "Enable profiling when building") <*>
switch
(long "enable-executable-dynamic" <>
help "Enable dynamic executables when building") <*>
switch switch
(long "verbose" <> short 'v' <> (long "verbose" <> short 'v' <>
help "Output verbose detail about the build steps") <*> help "Output verbose detail about the build steps") <*>

View File

@ -92,6 +92,7 @@ basicBuild getPlans _ = do
{ bfEnableTests = False { bfEnableTests = False
, bfDoUpload = False , bfDoUpload = False
, bfEnableLibProfile = False , bfEnableLibProfile = False
, bfEnableExecDyn = False
, bfVerbose = False , bfVerbose = False
} }
@ -117,6 +118,7 @@ shakeBuild getPlans _ = do
BuildFlags {bfEnableTests = False BuildFlags {bfEnableTests = False
,bfDoUpload = False ,bfDoUpload = False
,bfEnableLibProfile = False ,bfEnableLibProfile = False
,bfEnableExecDyn = False
,bfVerbose = False} ,bfVerbose = False}
-- | Check build plan with the given package set getter. -- | Check build plan with the given package set getter.