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
GHC
Commits
9d8e3a33
Commit
9d8e3a33
authored
Jan 01, 2015
by
Andrey Mokhov
Browse files
Change computed configuration flags into Conditions.
parent
82286153
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Package.hs
View file @
9d8e3a33
...
...
@@ -78,7 +78,7 @@ libraryArgs ways =
in
mconcat
[
argEnable
False
"library-for-ghci"
-- TODO: why always disable?
,
argEnable
(
vanilla
`
elem
`
ways
)
"library-vanilla"
,
when
(
G
hcWithInterpreter
&&
not
DynamicGhcPrograms
&&
vanilla
`
elem
`
ways
)
$
,
when
(
g
hcWithInterpreter
&&
not
DynamicGhcPrograms
&&
vanilla
`
elem
`
ways
)
$
argEnable
True
"library-for-ghci"
,
argEnable
(
profiling
`
elem
`
ways
)
"library-profiling"
,
argEnable
(
dynamic
`
elem
`
ways
)
"shared"
...
...
@@ -143,7 +143,7 @@ buildPackageData pkg @ (Package name path _) (stage, dist, settings) =
,
customConfArgs
settings
,
libraryArgs
=<<
ways
settings
,
when
H
sColourSrcs
$
with
HsColour
,
when
h
sColourSrcs
$
with
HsColour
,
configureArgs
stage
settings
,
when
(
stage
==
Stage0
)
$
bootPkgConstraints
...
...
src/Ways.hs
View file @
9d8e3a33
...
...
@@ -65,7 +65,7 @@ allWays = [vanilla, profiling, logging, parallel, granSim,
defaultWays
::
Stage
->
Action
[
Way
]
defaultWays
stage
=
do
sharedLibs
<-
test
P
latformSupportsSharedLibs
sharedLibs
<-
p
latformSupportsSharedLibs
return
$
[
vanilla
]
++
[
profiling
|
stage
/=
Stage0
]
++
[
dynamic
|
sharedLibs
]
...
...
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