Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
9af2f517
Commit
9af2f517
authored
Oct 20, 2013
by
idontgetoutmuch
Committed by
Duncan Coutts
Oct 25, 2013
Browse files
Don't use the new flag with old cabals:
https://github.com/haskell/cabal/pull/1470#issuecomment-26668599
parent
44a2cedc
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Setup.hs
View file @
9af2f517
...
@@ -246,12 +246,15 @@ filterConfigureFlags flags cabalLibVersion
...
@@ -246,12 +246,15 @@ filterConfigureFlags flags cabalLibVersion
|
cabalLibVersion
<
Version
[
1
,
10
,
0
]
[]
=
flags_1_10_0
|
cabalLibVersion
<
Version
[
1
,
10
,
0
]
[]
=
flags_1_10_0
|
cabalLibVersion
<
Version
[
1
,
14
,
0
]
[]
=
flags_1_14_0
|
cabalLibVersion
<
Version
[
1
,
14
,
0
]
[]
=
flags_1_14_0
|
cabalLibVersion
<
Version
[
1
,
18
,
0
]
[]
=
flags_1_18_0
|
cabalLibVersion
<
Version
[
1
,
18
,
0
]
[]
=
flags_1_18_0
|
cabalLibVersion
<
Version
[
1
,
19
,
0
]
[]
=
flags_1_19_0
-- A no-op that silences the "pattern match is non-exhaustive" warning.
-- A no-op that silences the "pattern match is non-exhaustive" warning.
|
otherwise
=
flags
|
otherwise
=
flags
where
where
-- Cabal < 1.19.0 does not grok the dependency flag.
flags_1_19_0
=
flags
{
configDependencies
=
[]
}
-- Cabal < 1.18.0 doesn't know about --extra-prog-path and --sysconfdir.
-- Cabal < 1.18.0 doesn't know about --extra-prog-path and --sysconfdir.
flags_1_18_0
=
flags
{
configProgramPathExtra
=
[]
flags_1_18_0
=
flags
_1_19_0
{
configProgramPathExtra
=
[]
,
configInstallDirs
=
configInstallDirs_1_18_0
}
,
configInstallDirs
=
configInstallDirs_1_18_0
}
configInstallDirs_1_18_0
=
(
configInstallDirs
flags
)
{
sysconfdir
=
NoFlag
}
configInstallDirs_1_18_0
=
(
configInstallDirs
flags
)
{
sysconfdir
=
NoFlag
}
-- Cabal < 1.14.0 doesn't know about --disable-benchmarks.
-- Cabal < 1.14.0 doesn't know about --disable-benchmarks.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment