Skip to content

Commit

Permalink
Fix GCOV and non-VGRUN display
Browse files Browse the repository at this point in the history
  • Loading branch information
nsauzede committed Nov 18, 2023
1 parent 9935c48 commit c4b327d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ VADEROOT:=$(shell dirname $(mkfile_path))
VADEMAKEINTERNAL:=make -f $(VADEROOT)/internal.mk SILENTMAKE=$(SILENTMAKE) VADEROOT=$(VADEROOT)

# CC0 is gcc, required to build *.so -- TODO fix thin *.a archives for TCC
CC:=gcc
CC0:=gcc
AR:=ar
NM:=nm
Expand Down Expand Up @@ -65,15 +66,18 @@ endif
ifneq (,$(VALGRIND))
# Check if valgrind is operational (eg: not missing debuginfo etc..)
ifneq (0, $(shell ($(VALGRIND) /bin/true 2>/dev/null ; echo $$?)))
VALGRIND:=
endif
endif

ifeq (,$(VALGRIND))
#$(error "NOT HAVE VALGRIND ($(VALGRIND))")
RUN:=
RUNTEST:=RUN
else
#$(error "HAVE VALGRIND ($(VALGRIND))")
VGRUN:=$(VALGRIND) $(VGOPTS)
RUNTEST:=VGRUN
endif
endif

RUNPYTEST:=RUNPY

Expand Down

0 comments on commit c4b327d

Please sign in to comment.