summaryrefslogtreecommitdiffstats
path: root/default_build_settings.cmake
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-02-13 11:33:20 +0100
committerTor Egge <Tor.Egge@online.no>2023-02-13 11:33:20 +0100
commitb890d3776b958a16bdb65e96a40208da78a37d34 (patch)
tree216a571458bf4fc47a99535d75a7d62ef34f0a9a /default_build_settings.cmake
parentd9b9b45b5234eda663e55b5bab87268e895ab171 (diff)
Require haswell cpu or newer when compiling with clang on linux.
Diffstat (limited to 'default_build_settings.cmake')
-rw-r--r--default_build_settings.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/default_build_settings.cmake b/default_build_settings.cmake
index bd74f414691..7d2aab4e3d5 100644
--- a/default_build_settings.cmake
+++ b/default_build_settings.cmake
@@ -131,8 +131,8 @@ function(vespa_use_default_build_settings)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
if(APPLE AND (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")))
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- # Avoid clang error on linux: _builtin_ia32_lddqu' needs target feature sse3
- set(DEFAULT_VESPA_CPU_ARCH_FLAGS "-march=westmere -mtune=haswell")
+ # Require haswell cpu or newer when compiling with clang on linux.
+ set(DEFAULT_VESPA_CPU_ARCH_FLAGS "-march=haswell -mtune=skylake")
else()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
# Temporary workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108599