Skip to content

Commit

Permalink
check if arm
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed Sep 16, 2024
1 parent 5a67a6a commit 32053ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32053ff

Please sign in to comment.