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
GHC
Commits
6d6834a6
Commit
6d6834a6
authored
Jun 20, 2016
by
Andrey Mokhov
Browse files
Fix Quick flavour
See
#259
,
#268
.
parent
3a04d342
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Settings/Flavours/Quick.hs
View file @
6d6834a6
module
Settings.Flavours.Quick
(
quickFlavourArgs
,
quickFlavourWays
)
where
import
Context
import
GHC
import
Predicate
optimise
::
Context
->
Bool
optimise
Context
{
..
}
=
stage
==
Stage0
&&
package
`
elem
`
[
compiler
,
ghc
]
||
stage
==
Stage1
&&
isLibrary
package
quickFlavourArgs
::
Args
quickFlavourArgs
=
builder
Ghc
?
arg
"-O0"
quickFlavourArgs
=
builder
Ghc
?
do
context
<-
getContext
if
optimise
context
then
arg
"-O"
else
arg
"-O0"
quickFlavourWays
::
Ways
quickFlavourWays
=
remove
[
profiling
]
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