Remove valgrind

(not working in Multithread code)
This commit is contained in:
Patrick Pelissier committed 2020-11-05 22:02:44 +01:00
1 parent ef1145603a
commit 9f89148b69
1 file changed
+3 -11
+3 -11
View File
@@ -42,9 +42,9 @@ all:
#####################################################################################################
.POSIX:
.PHONY: valgrind scan-build sanitize check clean *.log coverage synthesis
.PHONY: scan-build sanitize check clean *.log coverage synthesis
.SUFFIXES:
.SUFFIXES: .c .exe .log .depend .valgrind .gcov
.SUFFIXES: .c .exe .log .depend .gcov
.SECONDARY:
.c.exe:
@@ -56,9 +56,6 @@ all:
.exe.log:
$(LOG_COMPILER) ./$<
.exe.valgrind:
valgrind ./$<
.c.gcov:
awk '/START_COVERAGE/ { printit=1} (printit == 0) { print }' $< > $<.first.c
awk ' printit { print } /END_COVERAGE/ { printit=1}' $< > $<.end.c
@@ -95,7 +92,7 @@ check: depend
clean:
$(RM) *.exe *.s *~ *.o *.log a*.dat
$(RM) *.valgrind *.gcda *.gcno *.gcov all.info test.tar *.synt clang_output_* *.c.c *.end.c *.first.c *.middle.c
$(RM) *.gcda *.gcno *.gcov all.info test.tar *.synt clang_output_* *.c.c *.end.c *.first.c *.middle.c
$(RMDIR) coverage coverage-dir mlib-report
distclean: clean
@@ -197,11 +194,6 @@ synthesis:
# Code analyzer tools
#####################################################################################################
# valgrind is not working well with MT code.
# Use of _fsanitize=address should cover all valgrind checks.
#valgrind:
# $(MAKE) `ls test-*.c|$(SED) 's/\.c/\.valgrind/g'`
scan-build: clean
$(RM) -rf ./mlib-report
scan-build -o ./mlib-report $(MAKE) exe XCFLAGS="-std=c99"