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

Add support for LTO in xcode builds

parent 3c45edc3
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,9 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_XCODE_ATTRIBUTE_GCC_FAST_MATH YES)
set(CMAKE_XCODE_ATTRIBUTE_GCC_STRICT_ALIASING NO)
set(CMAKE_XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN YES)
if(USE_LTO)
set(CMAKE_XCODE_ATTRIBUTE_LLVM_LTO YES_THIN)
endif()
set(CMAKE_XCODE_ATTRIBUTE_GCC_GENERATE_DEBUGGING_SYMBOLS YES)
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT dwarf-with-dsym)
......
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