Commit 47b914cf authored by Mikhail Glushenkov's avatar Mikhail Glushenkov

filterConfigureFlags: s/1.17/1.18/.

Some people have old snapshots of 1.17 installed, which causes build failures.
parent 9f374ab4
......@@ -241,21 +241,21 @@ configureOptions = commandOptions configureCommand
filterConfigureFlags :: ConfigFlags -> Version -> ConfigFlags
filterConfigureFlags flags cabalLibVersion
| cabalLibVersion >= Version [1,17,0] [] = flags
| cabalLibVersion >= Version [1,18,0] [] = flags
| cabalLibVersion < Version [1,3,10] [] = flags_1_3_10
| cabalLibVersion < Version [1,10,0] [] = flags_1_10_0
| cabalLibVersion < Version [1,14,0] [] = flags_1_14_0
| cabalLibVersion < Version [1,17,0] [] = flags_1_17_0
| cabalLibVersion < Version [1,18,0] [] = flags_1_18_0
-- A no-op that silences the "pattern match is non-exhaustive" warning.
| otherwise = flags
where
-- Cabal < 1.17.0 doesn't know about --extra-prog-path and --sysconfdir.
flags_1_17_0 = flags { configProgramPathExtra = []
, configInstallDirs = configInstallDirs_1_17_0}
configInstallDirs_1_17_0 = (configInstallDirs flags) { sysconfdir = NoFlag }
-- Cabal < 1.18.0 doesn't know about --extra-prog-path and --sysconfdir.
flags_1_18_0 = flags { configProgramPathExtra = []
, configInstallDirs = configInstallDirs_1_18_0}
configInstallDirs_1_18_0 = (configInstallDirs flags) { sysconfdir = NoFlag }
-- Cabal < 1.14.0 doesn't know about --disable-benchmarks.
flags_1_14_0 = flags_1_17_0 { configBenchmarks = NoFlag }
flags_1_14_0 = flags_1_18_0 { configBenchmarks = NoFlag }
-- Cabal < 1.10.0 doesn't know about --disable-tests.
flags_1_10_0 = flags_1_14_0 { configTests = NoFlag }
-- Cabal < 1.3.10 does not grok the constraints flag.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment