From 32053ff096c07dfd0717c74a79092781458d0dfd Mon Sep 17 00:00:00 2001 From: Laurens Kuiper Date: Mon, 16 Sep 2024 16:26:26 +0200 Subject: [PATCH] check if arm --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 620f3cc36c90..b0d0a4e3dc69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -550,8 +550,13 @@ if(NOT MSVC) endif() set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0 -DDEBUG -Wall ${M32_FLAG} ${CXX_EXTRA}") - set(CMAKE_CXX_FLAGS_RELEASE - "${CMAKE_CXX_FLAGS_RELEASE} -O3 -msse3 -DNDEBUG ${M32_FLAG} ${CXX_EXTRA}") + if(NOT IS_ARM) + set(CMAKE_CXX_FLAGS_RELEASE + "${CMAKE_CXX_FLAGS_RELEASE} -O3 -msse3 -DNDEBUG ${M32_FLAG} ${CXX_EXTRA}") + else() + set(CMAKE_CXX_FLAGS_RELEASE + "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG ${M32_FLAG} ${CXX_EXTRA}") + endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_LTO) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto=${CMAKE_LTO}") elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_LTO)