[commit: ghc] wip/angerman/reloc: Adds profiling flag (f12c377)
git at git.haskell.org
git at git.haskell.org
Wed Feb 14 11:28:43 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/angerman/reloc
Link : http://ghc.haskell.org/trac/ghc/changeset/f12c3773ffa3435fa0cd89073f98a4cb7f625ad1/ghc
>---------------------------------------------------------------
commit f12c3773ffa3435fa0cd89073f98a4cb7f625ad1
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Wed Feb 14 09:33:43 2018 +0800
Adds profiling flag
origianlly authored by @alp
>---------------------------------------------------------------
f12c3773ffa3435fa0cd89073f98a4cb7f625ad1
rts/rts.cabal.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rts/rts.cabal.in b/rts/rts.cabal.in
index a895c9c..5f88f7e 100644
--- a/rts/rts.cabal.in
+++ b/rts/rts.cabal.in
@@ -26,6 +26,8 @@ flag leading-underscore
default: @CabalLeadingUnderscore@
flag smp
default: True
+flag profiling
+ default: False
library
-- rts is a wired in package and
@@ -43,7 +45,9 @@ library
-- libCffi_debug libCffi_ libCffi_l libCffi_p
-- libCffi_thr libCffi_thr_debug libCffi_thr_l libCffi_thr_p
extra-library-flavours: _debug _l _thr _thr_debug _thr_l
- -- TODO: _p and _thr_p only if profiling.
+ if flag(profiling)
+ extra-library-flavours: _p _thr_p
+
exposed: True
exposed-modules:
if flag(libm)
More information about the ghc-commits
mailing list