Skip to content

Commit

Permalink
Force disable the IPO option in macOS (#1271)
Browse files Browse the repository at this point in the history
Enabling the IPO option will make the debug mode deactivated. The object
the file will become LLVM bitcode and cannot be recognized by the
lldb/gdb.
  • Loading branch information
git-hulk authored Feb 21, 2023
1 parent 6a9a88c commit da4dcfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ endif()

if (CMAKE_HOST_APPLE)
set(DISABLE_JEMALLOC ON)
set(ENABLE_IPO OFF)
endif ()

if(NOT DISABLE_JEMALLOC)
Expand Down

0 comments on commit da4dcfe

Please sign in to comment.