Skip to content

Commit

Permalink
Remove -O3 from CMAKE_CXX_FLAGS_RELEASE.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Jun 29, 2022
1 parent 6d99cad commit 8af5a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,7 @@ if (APPLE)
# X86 builds on MacOS as these causes crashes with boost_python
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
message( STATUS "Disabling '-O3' : ${CMAKE_SYSTEM_PROCESSOR}")
string( REPLACE "-O3" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
string( REPLACE "-O3" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS} )
string( REPLACE "-O3" "" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} )
endif()
endif()

Expand All @@ -410,6 +409,7 @@ message( STATUS "CMAKE_C_COMPILER == ${CMAKE_C_COMPILER}" )
message( STATUS "CMAKE_CXX_COMPILER == ${CMAKE_CXX_COMPILER}" )
message( STATUS "C compiler flags == ${CMAKE_C_FLAGS}" )
message( STATUS "C++ compiler flags == ${CMAKE_CXX_FLAGS}" )
message( STATUS "CMake release flags == ${CMAKE_CXX_FLAGS_RELEASE}" )
message( STATUS "Shared library flags == ${CMAKE_SHARED_LINKER_FLAGS}" )
message( STATUS "Static library flags == ${CMAKE_STATIC_LINKER_FLAGS}" )
message( STATUS "Executable link flags == ${CMAKE_EXE_LINKER_FLAGS}" )
Expand Down

0 comments on commit 8af5a7e

Please sign in to comment.