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
6d22b989
Commit
6d22b989
authored
Jul 12, 2013
by
Mikhail Glushenkov
Browse files
Make the code a bit more readable.
parent
763457f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/GHC.hs
View file @
6d22b989
...
...
@@ -710,15 +710,14 @@ buildLib verbosity pkg_descr lbi lib clbi = do
"-dynosuf"
,
"dyn_o"
]
}
-- TODO: the logic in this fragment is quite convoluted. Should be possible to
-- simplify/refactor.
unless
(
null
(
libModules
lib
))
$
do
let
vanilla
=
whenVanillaLib
forceVanillaLib
(
runGhcProg
vanillaOpts
)
shared
=
whenSharedLib
forceSharedLib
(
runGhcProg
sharedOpts
)
if
dynamicTooSupported
&&
(
forceVanillaLib
||
withVanillaLib
lbi
)
&&
(
forceSharedLib
||
withSharedLib
lbi
)
&&
null
(
ghcSharedOptions
libBi
)
useDynToo
=
dynamicTooSupported
&&
(
forceVanillaLib
||
withVanillaLib
lbi
)
&&
(
forceSharedLib
||
withSharedLib
lbi
)
&&
null
(
ghcSharedOptions
libBi
)
if
useDynToo
then
runGhcProg
vanillaSharedOpts
else
if
isGhcDynamic
then
do
shared
;
vanilla
else
do
vanilla
;
shared
...
...
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