mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-03-11 11:16:34 +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
|
, bfEnableHaddock :: !Bool
|
||||||
, bfDoUpload :: !Bool
|
, bfDoUpload :: !Bool
|
||||||
, bfEnableLibProfile :: !Bool
|
, bfEnableLibProfile :: !Bool
|
||||||
|
, bfEnableExecDyn :: !Bool
|
||||||
, bfVerbose :: !Bool
|
, bfVerbose :: !Bool
|
||||||
, bfSkipCheck :: !Bool
|
, bfSkipCheck :: !Bool
|
||||||
, bfGhcOptions :: !String
|
, bfGhcOptions :: !String
|
||||||
|
|||||||
@ -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") <*>
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user