Skip to content
Snippets Groups Projects
Commit e6a3d054 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Use thin LTO on macOS as full lto codegen results in broken binary under Xcode 11

parent 8a9f3a79
No related branches found
No related tags found
No related merge requests found
...@@ -239,7 +239,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ...@@ -239,7 +239,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT dwarf) set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT dwarf)
endif (${CMAKE_BUILD_TYPE} STREQUAL "Release") endif (${CMAKE_BUILD_TYPE} STREQUAL "Release")
if(USE_LTO) if(USE_LTO)
set(CMAKE_XCODE_ATTRIBUTE_LLVM_LTO YES) set(CMAKE_XCODE_ATTRIBUTE_LLVM_LTO YES_THIN)
endif() endif()
set(CMAKE_XCODE_ATTRIBUTE_DEAD_CODE_STRIPPING YES) set(CMAKE_XCODE_ATTRIBUTE_DEAD_CODE_STRIPPING YES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment