Ways.hs 493 Bytes
Newer Older
1 2 3 4 5 6 7 8
module Settings.Ways (
    ways
    ) where

import Base
import Ways hiding (defaultWays)
import Switches
import Expression
9
import Settings.User
10 11 12 13 14 15 16 17 18 19 20

-- Combining default ways with user modifications
ways :: Ways
ways = defaultWays <> userWays

-- These are default ways
defaultWays :: Ways
defaultWays = mconcat
    [                              append [vanilla] -- always build vanilla
    , notStage Stage0            ? append [profiling]
    , platformSupportsSharedLibs ? append [dynamic] ]