-
Notifications
You must be signed in to change notification settings - Fork 37
Add support for build flavours #188
Comments
@thomie Let me respond to your comment here. Yes, for now I am also putting different flavours in separate files. Let's see how small/big these files will eventually become. We probably wouldn't want to have multiple files each containing a single useful line and a dozen of boilerplate imports etc., but maybe this won't happen. |
As discussed in #243, it would be nice to be able to select a BuildFlavour from within Other setting in |
The relevant bits are here: data Flavour = Default | Quick deriving (Eq, Show)
-- | Default values for 'CmdLineFlag.Untracked'.
defaultUntracked :: Untracked
defaultUntracked = Untracked { flavour = Default, ... } And here: flavourArgs :: Args
flavourArgs = mconcat
[ cmdFlavour == Quick ? quickFlavourArgs ]
getArgs :: Expr [String]
getArgs = fromDiffExpr $ mconcat [ defaultBuilderArgs
, defaultPackageArgs
, flavourArgs
, userArgs ] The trick is to implement the overriding of defaults in |
I implemented build flavours while working on #268, so I'm closing this issue. |
The
make
-based build system supports a number of build flavours, collections of settings tailored for a particular use-case, e.g.quick
,validate
, etc.Relevant issues: #132, #186, #187.
The text was updated successfully, but these errors were encountered: