Minor revision
[hadrian.git] / src / Settings / Builders / Configure.hs
1 module Settings.Builders.Configure (configureBuilderArgs) where
2
3 import Base
4 import Oracles.Config.Setting
5 import Predicate
6 import Settings
7
8 configureBuilderArgs :: Args
9 configureBuilderArgs = mconcat
10 [ builder (Configure gmpBuildPath) ? do
11 hostPlatform <- getSetting HostPlatform
12 buildPlatform <- getSetting BuildPlatform
13 append [ "--enable-shared=no"
14 , "--host=" ++ hostPlatform
15 , "--build=" ++ buildPlatform ]
16
17 , builder (Configure libffiBuildPath) ? do
18 top <- getTopDirectory
19 targetPlatform <- getSetting TargetPlatform
20 append [ "--prefix=" ++ top -/- libffiBuildPath -/- "inst"
21 , "--libdir=" ++ top -/- libffiBuildPath -/- "inst/lib"
22 , "--enable-static=yes"
23 , "--enable-shared=no" -- TODO: add support for yes
24 , "--host=" ++ targetPlatform ]
25 ]