Skip to content
GitLab
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
d61326ff
Commit
d61326ff
authored
Nov 01, 2013
by
Mikhail Glushenkov
Browse files
'cabal build': Don't pass the '-j' flag to old setup scripts.
parent
4c7b7f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Main.hs
View file @
d61326ff
...
...
@@ -302,14 +302,20 @@ buildAction (buildFlags, buildExFlags) extraArgs globalFlags = do
build
::
Verbosity
->
FilePath
->
BuildFlags
->
[
String
]
->
IO
()
build
verbosity
distPref
buildFlags
extraArgs
=
setupWrapper
verbosity
setupOptions
Nothing
(
Cabal
.
buildCommand
progConf
)
(
const
b
uildFlags
'
)
extraArgs
(
Cabal
.
buildCommand
progConf
)
mkB
uildFlags
extraArgs
where
progConf
=
defaultProgramConfiguration
setupOptions
=
defaultSetupScriptOptions
{
useDistPref
=
distPref
}
buildFlags'
=
buildFlags
buildFlags'
=
buildFlags
{
buildVerbosity
=
toFlag
verbosity
,
buildDistPref
=
toFlag
distPref
,
buildDistPref
=
toFlag
distPref
}
mkBuildFlags
version
|
version
>=
Version
[
1
,
19
,
1
]
[]
=
buildFlags'
-- Cabal < 1.19.1 doesn't support 'build -j'.
|
otherwise
=
buildFlags'
{
buildNumJobs
=
NoFlag
}
replAction
::
ReplFlags
->
[
String
]
->
GlobalFlags
->
IO
()
replAction
replFlags
extraArgs
globalFlags
=
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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