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
cb2d836c
Commit
cb2d836c
authored
May 29, 2013
by
Mikhail Glushenkov
Browse files
Pass '--builddir' to 'test' when running 'install --enable-tests'.
parent
4102b0d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Install.hs
View file @
cb2d836c
...
...
@@ -102,7 +102,7 @@ import Distribution.Simple.Setup
,
buildCommand
,
BuildFlags
(
..
),
emptyBuildFlags
,
toFlag
,
fromFlag
,
fromFlagOrDefault
,
flagToMaybe
)
import
qualified
Distribution.Simple.Setup
as
Cabal
(
installCommand
,
InstallFlags
(
..
),
emptyInstallFlags
(
installCommand
,
InstallFlags
(
..
),
TestFlags
(
..
),
emptyInstallFlags
,
emptyTestFlags
,
testCommand
,
Flag
(
..
)
)
import
Distribution.Simple.Utils
(
rawSystemExit
,
comparing
,
writeFileAtomic
)
...
...
@@ -1206,7 +1206,9 @@ installUnpackedPackage verbosity buildLimit installLock numJobs
haddockVerbosity
=
toFlag
verbosity'
}
testsEnabled
=
fromFlag
(
configTests
configFlags
)
testFlags
_
=
Cabal
.
emptyTestFlags
testFlags
_
=
Cabal
.
emptyTestFlags
{
Cabal
.
testDistPref
=
configDistPref
configFlags
}
installFlags
_
=
Cabal
.
emptyInstallFlags
{
Cabal
.
installDistPref
=
configDistPref
configFlags
,
Cabal
.
installVerbosity
=
toFlag
verbosity'
...
...
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