From 41b17e6eadffadc04c39cab1ce821fd2f77dd9a8 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 22 May 2022 01:34:34 +0200 Subject: [PATCH] Disable IPO by default since it slows down linking a lot --- CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 510bff97e..2f161fc07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,19 +96,6 @@ endif() set(AUTO_DEPENDENCIES_DEFAULT OFF) -if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR DEV) - set(AUTO_IPO OFF) -elseif(MSVC) - # For some reason on MSVC platform the client and server binaries - # become even bigger with IPO enabled. - set(AUTO_IPO OFF) -elseif(MINGW AND TARGET_CPU_ARCHITECTURE STREQUAL "x86") - # DWARF error: could not find variable specification and further failures - set(AUTO_IPO OFF) -else() - set(AUTO_IPO ON) -endif() - set(AUTO_VULKAN_BACKEND ON) if(TARGET_OS STREQUAL "windows") set(AUTO_DEPENDENCIES_DEFAULT ON) @@ -140,7 +127,7 @@ option(DEV "Don't generate stuff necessary for packaging" OFF) option(VULKAN "Enable the vulkan backend" ${AUTO_VULKAN_BACKEND}) option(EXCEPTION_HANDLING "Enable exception handling (only works with Windows as of now)" OFF) -option(IPO "Enable interprocedural optimizations" ${AUTO_IPO}) +option(IPO "Enable interprocedural optimizations" OFF) if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten") include(${PROJECT_SOURCE_DIR}/cmake/toolchains/Emscripten.toolchain)