about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-03-03 14:31:25 -0800
committerPatrick Walton <pcwalton@mimiga.net>2011-03-03 14:31:25 -0800
commit7f74d4d4f2e0635d644be6e2259973b5cf559a2e (patch)
tree15637146dd05bf68de5ee7b569482eddd2010546
parent2a241ece3a8fdaa536946b29eeab4524da164903 (diff)
Turn on Valgrind for Mac
-rw-r--r--src/Makefile21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/Makefile b/src/Makefile
index 2be8be48338..37726b6eea1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -43,13 +43,6 @@ ifeq ($(CFG_OSTYPE), FreeBSD)
   endif
   CFG_NATIVE := 1
   CFG_UNIXY := 1
-  CFG_VALGRIND := $(shell which valgrind)
-  ifdef CFG_VALGRIND
-    CFG_VALGRIND += --leak-check=full \
-                    --error-exitcode=1 \
-                    --quiet --vex-iropt-level=0 \
-                    --suppressions=etc/x86.supp
-  endif
 endif
 
 ifeq ($(CFG_OSTYPE), Linux)
@@ -63,13 +56,6 @@ ifeq ($(CFG_OSTYPE), Linux)
   endif
   CFG_NATIVE := 1
   CFG_UNIXY := 1
-  CFG_VALGRIND := $(shell which valgrind)
-  ifdef CFG_VALGRIND
-    CFG_VALGRIND += --leak-check=full \
-                    --error-exitcode=1 \
-                    --quiet --vex-iropt-level=0 \
-                    --suppressions=etc/x86.supp
-  endif
 endif
 
 ifeq ($(CFG_OSTYPE), Darwin)
@@ -137,6 +123,13 @@ ifdef CFG_UNIXY
       CFG_GCC_LINK_FLAGS += -m32
     endif
   endif
+  CFG_VALGRIND := $(shell which valgrind)
+  ifdef CFG_VALGRIND
+    CFG_VALGRIND += --leak-check=full \
+                    --error-exitcode=1 \
+                    --quiet --vex-iropt-level=0 \
+                    --suppressions=etc/x86.supp
+  endif
 endif
 
 ifdef CFG_GCC