diff options
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/ghc-bin.cabal.in | 9 | ||||
-rw-r--r-- | ghc/ghc.mk | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ghc/ghc-bin.cabal.in b/ghc/ghc-bin.cabal.in index cde0cbcb3e..3a1b4922f6 100644 --- a/ghc/ghc-bin.cabal.in +++ b/ghc/ghc-bin.cabal.in @@ -29,6 +29,11 @@ Flag threaded Default: True Manual: True +Flag eventlog + Description: Link the ghc executable against the event-logging RTS + Default: True + Manual: True + Executable ghc Default-Language: Haskell2010 @@ -91,7 +96,9 @@ Executable ghc if flag(threaded) ghc-options: -threaded - ghc-options: -eventlog + -- Same for GhcEventLoggingRts + if flag(eventlog) + ghc-options: -eventlog Other-Extensions: CPP diff --git a/ghc/ghc.mk b/ghc/ghc.mk index fcfb61f65a..627f4bc13c 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -67,6 +67,11 @@ else ghc_stage1_CONFIGURE_OPTS += -f-threaded endif +# Same for an event-logging RTS. +ifeq "$(GhcEventLoggingRts)" "NO" +ghc_stage1_CONFIGURE_OPTS += -f-eventlog +endif + ifeq "$(GhcProfiled)" "YES" ghc_stage2_PROGRAM_WAY = p endif |