From fa6408796693f7324371951c5b16f67d6196bad8 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 9 May 2024 01:20:06 -0400 Subject: Makefile: remove -fsanitize=leak (not supported in macos) --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6172393..b930394 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,16 @@ LIB=libsha3.so LIB_OBJS=sha3.o # test app (test suite and sanitizers) -TEST_CFLAGS=-g -fsanitize=address,pointer-compare,pointer-subtract,undefined,leak -W -Wall -Wextra -Werror -pedantic -std=c11 -march=native -mtune=native -DBACKEND=$(BACKEND) +# +# note: some older versions of GCC may have trouble with these sanitizer +# options. if the compiler is giving you grief, try changing the +# "-fsanitize" parameter to "-fsanitize=undefined" or removing the +# "-fsanitize" parameter completely +# +# as noted in https://github.com/pablotron/fips203ipd/issues/1, macos +# clang and gcc do not support -fsanitize=leak, so i have removed it for +# now +TEST_CFLAGS=-g -fsanitize=address,pointer-compare,pointer-subtract,undefined -W -Wall -Wextra -Werror -pedantic -std=c11 -march=native -mtune=native -DBACKEND=$(BACKEND) TEST_APP=./test-sha3 .PHONY=test all -- cgit v1.2.3