From 296177e079679e8a0d454a5d5657c9204531c144 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Mon, 18 Nov 2019 13:24:41 +0100 Subject: [PATCH] Don't use -march=native for keccak CircleCI has AVX512 support and the compiler will generate instructions that Valgrind doesn't handle. --- common/keccak4x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/keccak4x/Makefile b/common/keccak4x/Makefile index ca24c6e6..6b1835ed 100644 --- a/common/keccak4x/Makefile +++ b/common/keccak4x/Makefile @@ -1,7 +1,7 @@ KeccakP-1600-times4-SIMD256.o: KeccakP-1600-times4-SIMD256.c \ align.h brg_endian.h KeccakP-1600-times4-SnP.h \ KeccakP-1600-unrolling.macros SIMD256-config.h - $(CC) $(CFLAGS) -march=native -c $< -o $@ + $(CC) $(CFLAGS) -mavx2 -c $< -o $@ .PHONY: clean clean: