summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2019-06-03 15:57:02 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-04 14:43:17 -0400
commitba4e3934abc82e0ba2bec51842315819910d1018 (patch)
tree3655e8992cffef432168e6e4544558ba0740c186 /hadrian
parentc16f3297401f8f1f0f5d289867725ad185ac5a40 (diff)
downloadhaskell-ba4e3934abc82e0ba2bec51842315819910d1018.tar.gz
Hadrian: profiling and debug enabled ways support -eventlog too
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Settings/Builders/Ghc.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Builders/Ghc.hs b/hadrian/src/Settings/Builders/Ghc.hs
index 0f5ed94b9b..db368f9b91 100644
--- a/hadrian/src/Settings/Builders/Ghc.hs
+++ b/hadrian/src/Settings/Builders/Ghc.hs
@@ -176,10 +176,12 @@ wayGhcArgs = do
, (Threaded `wayUnit` way) ? arg "-optc-DTHREADED_RTS"
, (Debug `wayUnit` way) ? arg "-optc-DDEBUG"
, (Profiling `wayUnit` way) ? arg "-prof"
- , (Logging `wayUnit` way) ? arg "-eventlog"
+ , supportsEventlog way ? arg "-eventlog"
, (way == debug || way == debugDynamic) ?
pure ["-ticky", "-DTICKY_TICKY"] ]
+ where supportsEventlog w = any (`wayUnit` w) [Logging, Profiling, Debug]
+
packageGhcArgs :: Args
packageGhcArgs = do
package <- getPackage