diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2017-05-04 16:38:19 +0300 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2017-05-04 16:38:19 +0300 |
commit | abfc21e47acce2e808072a439b7802856227c436 (patch) | |
tree | c661f4b3f898d4175bdded3d36c9fb4a70f15e06 /main/Makefile.am | |
parent | 00879ff951ae13b21ed550e87494e09fe4f78e42 (diff) |
[build] Tell people how to get the leak checker if it's missing
Diffstat (limited to 'main/Makefile.am')
-rw-r--r-- | main/Makefile.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/main/Makefile.am b/main/Makefile.am index 766272b14e..26f87bad8a 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -130,7 +130,13 @@ run-bundle: $(PROGRAM) LANG= LC_ALL= $(MD_LAUNCH_SETUP) $(MD_LAUNCH_EXTRA_ENV) $(MD_BIN_PATH)/MonoDevelop --no-redirect run-leaks: $(PROGRAM) - DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=`pwd`/build/bin/libgobject-tracker.dylib LANG= LC_ALL= $(MD_LAUNCH_SETUP) $(MD_LAUNCH_EXTRA_ENV) $(MD_BIN_PATH)/MonoDevelop --no-redirect + @if [ -a `pwd`/build/bin/libgobject-tracker.dylib ]; then \ + DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=`pwd`/build/bin/libgobject-tracker.dylib LANG= LC_ALL= $(MD_LAUNCH_SETUP) $(MD_LAUNCH_EXTRA_ENV) $(MD_BIN_PATH)/MonoDevelop --no-redirect; \ + else \ + echo '\033[0;31m' \ + && echo "You need to compile and install libgobject-tracker.dylib from https://github.com/alanmcgovern/gobject-tracker to run gobject leak checking" \ + && echo '\033[0m'; \ + fi run-64: run-sgen-64 |