Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
a1328251
Commit
a1328251
authored
Nov 25, 2014
by
Christiaan Baaij
Browse files
Correctly name flag restriction
parent
ae56bb39
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Setup.hs
View file @
a1328251
...
...
@@ -276,16 +276,16 @@ filterConfigureFlags flags cabalLibVersion
|
cabalLibVersion
<
Version
[
1
,
18
,
0
]
[]
=
flags_1_18_0
|
cabalLibVersion
<
Version
[
1
,
19
,
1
]
[]
=
flags_1_19_0
|
cabalLibVersion
<
Version
[
1
,
19
,
2
]
[]
=
flags_1_19_1
|
cabalLibVersion
<
Version
[
1
,
21
,
1
]
[]
=
flags_1_2
1_1
|
cabalLibVersion
<
Version
[
1
,
21
,
1
]
[]
=
flags_1_2
0_0
|
otherwise
=
flags_latest
where
-- Cabal >= 1.19.1 uses '--dependency' and does not need '--constraint'.
flags_latest
=
flags
{
configConstraints
=
[]
}
-- Cabal < 1.21.1 doesn't know about 'disable-relocatable'
flags_1_2
1_1
=
flags_latest
{
configRelocatable
=
NoFlag
}
flags_1_2
0_0
=
flags_latest
{
configRelocatable
=
NoFlag
}
-- Cabal < 1.19.2 doesn't know about '--exact-configuration'.
flags_1_19_1
=
flags_1_2
1_1
{
configExactConfiguration
=
NoFlag
}
flags_1_19_1
=
flags_1_2
0_0
{
configExactConfiguration
=
NoFlag
}
-- Cabal < 1.19.1 uses '--constraint' instead of '--dependency'.
flags_1_19_0
=
flags_1_19_1
{
configDependencies
=
[]
,
configConstraints
=
configConstraints
flags
}
...
...
Write
Preview
Markdown
is supported
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