mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
No IPO by default in DEV builds
This commit is contained in:
parent
dc03f410ad
commit
ee36c54125
|
@ -96,19 +96,17 @@ endif()
|
||||||
|
|
||||||
set(AUTO_DEPENDENCIES_DEFAULT OFF)
|
set(AUTO_DEPENDENCIES_DEFAULT OFF)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR DEV)
|
||||||
set(AUTO_IPO OFF)
|
set(AUTO_IPO OFF)
|
||||||
else()
|
elseif(MSVC)
|
||||||
set(AUTO_IPO ON)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
# For some reason on MSVC platform the client and server binaries
|
# For some reason on MSVC platform the client and server binaries
|
||||||
# become even bigger with IPO enabled.
|
# become even bigger with IPO enabled.
|
||||||
set(AUTO_IPO OFF)
|
set(AUTO_IPO OFF)
|
||||||
elseif(MINGW AND TARGET_CPU_ARCHITECTURE STREQUAL "x86")
|
elseif(MINGW AND TARGET_CPU_ARCHITECTURE STREQUAL "x86")
|
||||||
# DWARF error: could not find variable specification and further failures
|
# DWARF error: could not find variable specification and further failures
|
||||||
set(AUTO_IPO OFF)
|
set(AUTO_IPO OFF)
|
||||||
|
else()
|
||||||
|
set(AUTO_IPO ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(AUTO_VULKAN_BACKEND ON)
|
set(AUTO_VULKAN_BACKEND ON)
|
||||||
|
|
Loading…
Reference in a new issue