Browse Source

fatal on no ipo

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2581/head
crueter 6 months ago
parent
commit
794a44fdcb
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -203,7 +203,7 @@ if(YUZU_ENABLE_LTO)
include(CheckIPOSupported) include(CheckIPOSupported)
check_ipo_supported(RESULT COMPILER_SUPPORTS_LTO) check_ipo_supported(RESULT COMPILER_SUPPORTS_LTO)
if(NOT COMPILER_SUPPORTS_LTO) if(NOT COMPILER_SUPPORTS_LTO)
message(WARNING "LTO is not supported!")
message(FATAL_ERROR "Your compiler does not support interprocedural optimization (IPO). Re-run CMake with -DYUZU_ENABLE_LTO=OFF.")
endif() endif()
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ${COMPILER_SUPPORTS_LTO}) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ${COMPILER_SUPPORTS_LTO})
endif() endif()
@ -903,7 +903,7 @@ if (YUZU_USE_FASTER_LD)
endif() endif()
# GNU appears to work better with mold # GNU appears to work better with mold
# TODO: mold has been slow lately, see if lld is faster
# TODO: mold has been slow lately, see if better options exist (search for gold?)
if (CXX_GCC) if (CXX_GCC)
find_program(MOLD mold) find_program(MOLD mold)
if (MOLD AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12.1") if (MOLD AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12.1")

Loading…
Cancel
Save