From e89edf777283a0309561acadf3d4bebe174c82a1 Mon Sep 17 00:00:00 2001 From: Arnstein Ressem Date: Fri, 14 Oct 2016 12:47:43 +0000 Subject: Add function to only add -mtune=skylake-avx512 for gcc >= 5.3 --- staging_vespalib/src/vespa/vespalib/hwaccelrated/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'staging_vespalib') diff --git a/staging_vespalib/src/vespa/vespalib/hwaccelrated/CMakeLists.txt b/staging_vespalib/src/vespa/vespalib/hwaccelrated/CMakeLists.txt index 032528482e6..6362cdf6f87 100644 --- a/staging_vespalib/src/vespa/vespalib/hwaccelrated/CMakeLists.txt +++ b/staging_vespalib/src/vespa/vespalib/hwaccelrated/CMakeLists.txt @@ -11,4 +11,4 @@ vespa_add_library(staging_vespalib_vespalib_hwaccelrated OBJECT ) set_source_files_properties(avx.cpp PROPERTIES COMPILE_FLAGS -march=sandybridge) set_source_files_properties(avx2.cpp PROPERTIES COMPILE_FLAGS -march=haswell) -set_source_files_properties(avx512.cpp PROPERTIES COMPILE_FLAGS -march=skylake-avx512) +vespa_workaround_set_gcc_march_skylake_avx512_if_supported(avx512.cpp) -- cgit v1.2.3