Skip to content

Commit

Permalink
Check if valgrind is operational
Browse files Browse the repository at this point in the history
  • Loading branch information
nsauzede committed Oct 16, 2023
1 parent 5c4ae7e commit 162e2aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ ifeq ($(CC),$(CLANG))
VALGRIND:=
endif

ifeq (, $(shell which $(VALGRIND) 2>/dev/null))
# Check if valgrind is operational (eg: not missing debuginfo etc..)
ifneq (0, $(shell $(VALGRIND) /bin/false 2>/dev/null ; echo $?))
#$(error "NOT HAVE VALGRIND ($(VALGRIND))")
RUN:=
RUNTEST:=RUN
Expand Down

0 comments on commit 162e2aa

Please sign in to comment.