Hadrian: add LLVM flavours
[ghc.git] / hadrian / src / Settings / Flavours / Llvm.hs
1 module Settings.Flavours.Llvm (
2 performanceLlvmFlavour,
3 profiledLlvmFlavour,
4 quickLlvmFlavour,
5 ) where
6
7 import Expression
8 import Flavour
9
10 import Settings.Flavours.Performance
11 import Settings.Flavours.Profiled
12 import Settings.Flavours.Quick
13
14 -- Please update doc/flavours.md when changing this file.
15 performanceLlvmFlavour, profiledLlvmFlavour, quickLlvmFlavour :: Flavour
16 performanceLlvmFlavour = mkLlvmFlavour performanceFlavour
17 profiledLlvmFlavour = mkLlvmFlavour profiledFlavour
18 quickLlvmFlavour = mkLlvmFlavour quickFlavour
19
20 -- | Turn a flavour into an LLVM flavour
21 mkLlvmFlavour :: Flavour -> Flavour
22 mkLlvmFlavour flav = flav
23 { name = name flav ++ "-llvm"
24 , args = mconcat [ args flav
25 , builder Ghc ? arg "-fllvm" ]
26 }