Factor out general functionality of path oracles to the library
[hadrian.git] / src / Settings / Builders / Configure.hs
1 module Settings.Builders.Configure (configureBuilderArgs) where
2
3 import Settings.Builders.Common
4
5 configureBuilderArgs :: Args
6 configureBuilderArgs = mconcat
7 [ builder (Configure gmpBuildPath) ? do
8 hostPlatform <- getSetting HostPlatform
9 buildPlatform <- getSetting BuildPlatform
10 append [ "--enable-shared=no"
11 , "--host=" ++ hostPlatform
12 , "--build=" ++ buildPlatform ]
13
14 , builder (Configure libffiBuildPath) ? do
15 top <- expr topDirectory
16 targetPlatform <- getSetting TargetPlatform
17 append [ "--prefix=" ++ top -/- libffiBuildPath -/- "inst"
18 , "--libdir=" ++ top -/- libffiBuildPath -/- "inst/lib"
19 , "--enable-static=yes"
20 , "--enable-shared=no" -- TODO: add support for yes
21 , "--host=" ++ targetPlatform ] ]