diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-08-17 10:28:39 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-08-17 16:42:55 -0400 |
commit | 69a0f01674e58e5acd0ae250770676f47ab1ac68 (patch) | |
tree | 3ca4be41976fc573e1619a1c645971ef120202e7 /rts/ghc.mk | |
parent | 3385669683b8bc150c6df3cb43320dfc6f80fcd9 (diff) | |
download | haskell-69a0f01674e58e5acd0ae250770676f47ab1ac68.tar.gz |
rts: Enable USDT probes object on Linux
Summary: The dtrace utility shipped with Debian expects this.
Reviewers: austin, simonmar
Reviewed By: simonmar
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3829
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r-- | rts/ghc.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk index 990f4db4e2..e3de93dc49 100644 --- a/rts/ghc.mk +++ b/rts/ghc.mk @@ -170,8 +170,12 @@ rts_$1_CMM_OBJS = $$(patsubst rts/%.cmm,rts/dist/build/%.$$($1_osuf),$$(rts_CMM_ rts_$1_OBJS = $$(rts_$1_C_OBJS) $$(rts_$1_S_OBJS) $$(rts_$1_CMM_OBJS) +ifneq "$$(findstring linux solaris2, $(TargetOS_CPP))" "" +NEED_DTRACE_PROBES_OBJ = YES +endif + ifeq "$(USE_DTRACE)" "YES" -ifeq "$(TargetOS_CPP)" "solaris2" +ifeq "$(NEED_DTRACE_PROBES_OBJ)" "YES" # On Darwin we don't need to generate binary containing probes defined # in DTrace script, but DTrace on Solaris expects generation of binary # from the DTrace probes definitions |