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
895f863b
Commit
895f863b
authored
Dec 17, 2017
by
Herbert Valerio Riedel
🕺
Browse files
Don't inject `setupBuildInfo` for non-Custom packages
parent
8ce06b6f
Changes
1
Show whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Dependency.hs
View file @
895f863b
...
...
@@ -527,14 +527,16 @@ addDefaultSetupDependencies defaultSetupDeps params =
Just
sbi
->
Just
sbi
Nothing
->
case
defaultSetupDeps
srcpkg
of
Nothing
->
Nothing
Just
deps
->
Just
PD
.
SetupBuildInfo
{
Just
deps
|
isCustom
->
Just
PD
.
SetupBuildInfo
{
PD
.
defaultSetupDepends
=
True
,
PD
.
setupDepends
=
deps
}
|
otherwise
->
Nothing
}
}
}
where
isCustom
=
PD
.
buildType
pkgdesc
==
PD
.
Custom
gpkgdesc
=
packageDescription
srcpkg
pkgdesc
=
PD
.
packageDescription
gpkgdesc
...
...
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