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
3ae4e1d0
Commit
3ae4e1d0
authored
Jan 07, 2017
by
Andrey Mokhov
Browse files
Depend on RTS only when building GHC program
parent
76de2275
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Rules/Program.hs
View file @
3ae4e1d0
...
...
@@ -73,9 +73,10 @@ buildBinary rs context@Context {..} bin = do
binDeps
<-
if
stage
==
Stage0
&&
package
==
ghcCabal
then
hsSources
context
else
do
deps
<-
contextDependencies
context
ways
<-
interpretInContext
context
(
getLibraryWays
<>
getRtsWays
)
needContext
$
deps
++
[
rtsContext
{
way
=
w
}
|
w
<-
ways
]
needContext
=<<
contextDependencies
context
when
(
package
==
ghc
)
$
do
ways
<-
interpretInContext
context
(
getLibraryWays
<>
getRtsWays
)
needContext
[
rtsContext
{
way
=
w
}
|
w
<-
ways
]
let
path
=
buildPath
context
cObjs
<-
map
(
objectPath
context
)
<$>
pkgDataList
(
CSrcs
path
)
hsObjs
<-
hsObjects
context
...
...
src/Settings/Flavours/Quickest.hs
View file @
3ae4e1d0
...
...
@@ -8,10 +8,8 @@ quickestFlavour :: Flavour
quickestFlavour
=
defaultFlavour
{
name
=
"quickest"
,
args
=
defaultBuilderArgs
<>
quickestArgs
<>
defaultPackageArgs
,
libraryWays
=
defaultLibraryWays
<>
quickestLibraryWays
}
,
libraryWays
=
append
[
vanilla
]
,
rtsWays
=
append
[
vanilla
]
}
quickestArgs
::
Args
quickestArgs
=
builder
Ghc
?
arg
"-O0"
quickestLibraryWays
::
Ways
quickestLibraryWays
=
remove
[
profiling
]
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