From 94ec8d340eda4ba0262c41021c974e82df463229 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Wed, 17 Feb 2021 13:56:44 +0000 Subject: [PATCH] Fix --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01e061fc..243582ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,6 +215,9 @@ set( define_kem_alg(kyber512_clean PQCLEAN_KYBER512_CLEAN "${SRC_CLEAN_KYBER512}" "${INC_CLEAN_KYBER512}") +# AVX2 targets +if(${ARCH} STREQUAL "ARCH_x86_64") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=haswell") set( SRC_AVX2_KYBER512 @@ -235,7 +238,6 @@ set( crypto_kem/kyber512/avx2/shuffle.S ) -if(${ARCH} STREQUAL "ARCH_x86_64") set( INC_AVX2_KYBER512 crypto_kem/kyber512/avx2