summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native/CMakeLists.txt
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-05-19 15:13:40 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-05-19 14:44:31 +0000
commit188296ae59c7f244da2f0c78657512b933e17fb9 (patch)
tree2e08659c8cd9d3b35f879767c1290afd1bdd8a1c /src/plugins/crypto_native/CMakeLists.txt
parentfbb02c432dbadd4e2faf0a378ac012972c4bed98 (diff)
build: fix crypto_native compile flags check
Type: fix Change-Id: I338036a3cac74fd5f9772bcf7685ee6970653ddb Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/crypto_native/CMakeLists.txt')
-rw-r--r--src/plugins/crypto_native/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/crypto_native/CMakeLists.txt b/src/plugins/crypto_native/CMakeLists.txt
index e71df3d6a98..688a8c95baf 100644
--- a/src/plugins/crypto_native/CMakeLists.txt
+++ b/src/plugins/crypto_native/CMakeLists.txt
@@ -14,10 +14,10 @@
if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
list(APPEND VARIANTS "slm\;-march=silvermont")
list(APPEND VARIANTS "hsw\;-march=haswell")
- if(compiler_flag_march_skylake_avx512 AND compiler_flag_mprefer_vector_width)
+ if(compiler_flag_march_skylake_avx512 AND compiler_flag_mprefer_vector_width_256)
list(APPEND VARIANTS "skx\;-march=skylake-avx512 -mprefer-vector-width=256")
endif()
- if(compiler_flag_march_icelake_client AND compiler_flag_mprefer_vector_width)
+ if(compiler_flag_march_icelake_client AND compiler_flag_mprefer_vector_width_512)
list(APPEND VARIANTS "icl\;-march=icelake-client -mprefer-vector-width=512")
endif()
set (COMPILE_FILES aes_cbc.c aes_gcm.c)