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
8d86ac8f
Commit
8d86ac8f
authored
Aug 02, 2008
by
Duncan Coutts
Browse files
Pass dist dir and verbosity flags to build and install phases
parent
19c56374
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Install.hs
View file @
8d86ac8f
...
...
@@ -337,15 +337,22 @@ installUnpackedPackage verbosity scriptOptions miscOptions configFlags
=
onFailure
ConfigureFailed
$
do
setup
configureCommand
(
filterConfigureFlags
configFlags
)
onFailure
BuildFailed
$
do
setup
buildCommand
(
const
Cabal
.
emptyB
uildFlags
)
setup
buildCommand
b
uildFlags
onFailure
InstallFailed
$
do
case
rootCmd
miscOptions
of
(
Just
cmd
)
->
reexec
cmd
Nothing
->
setup
Cabal
.
installCommand
(
const
Cabal
.
emptyInstallFlags
)
Nothing
->
setup
Cabal
.
installCommand
installFlags
return
BuildOk
where
buildCommand
=
Cabal
.
buildCommand
defaultProgramConfiguration
buildFlags
_
=
Cabal
.
emptyBuildFlags
{
Cabal
.
buildDistPref
=
Cabal
.
configDistPref
configFlags
,
Cabal
.
buildVerbosity
=
Cabal
.
toFlag
verbosity
}
installFlags
_
=
Cabal
.
emptyInstallFlags
{
Cabal
.
installDistPref
=
Cabal
.
configDistPref
configFlags
,
Cabal
.
installVerbosity
=
Cabal
.
toFlag
verbosity
}
setup
cmd
flags
=
do
logFileHandle
<-
case
useLogFile
of
Nothing
->
return
Nothing
...
...
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