From 31708d8b20d465b99320548537ef6774651f9757 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 25 May 2022 15:50:25 +0200 Subject: [PATCH] Disable LTO on apple devices --- winpr/libwinpr/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winpr/libwinpr/CMakeLists.txt b/winpr/libwinpr/CMakeLists.txt index f02a77153..4752ba36e 100644 --- a/winpr/libwinpr/CMakeLists.txt +++ b/winpr/libwinpr/CMakeLists.txt @@ -137,6 +137,9 @@ if (WIN32) endif() add_library(${MODULE_NAME} ${WINPR_SRCS}) +if (APPLE) + set_target_properties(${MODULE_NAME} PROPERTIES INTERPROCEDURAL_OPTIMIZATION FALSE) +endif() set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C) set_target_properties(${MODULE_NAME} PROPERTIES OUTPUT_NAME ${MODULE_NAME}${WINPR_API_VERSION}) if (WITH_LIBRARY_VERSIONING)