CMake: Fix LTO_PCSX2_CORE + DISABLE_ADVANCE_SIMD

This commit is contained in:
TellowKrinkle 2022-12-03 14:15:06 -06:00 committed by TellowKrinkle
parent 1a383de5c4
commit d47c9b0773
1 changed files with 3 additions and 0 deletions

View File

@ -1577,6 +1577,9 @@ if(LTO_PCSX2_CORE)
if (WIN32) if (WIN32)
target_compile_definitions(PCSX2_LTO PRIVATE _M_SSE=0x401) target_compile_definitions(PCSX2_LTO PRIVATE _M_SSE=0x401)
endif() endif()
if (DISABLE_ADVANCE_SIMD)
target_compile_definitions(PCSX2_LTO PRIVATE MULTI_ISA_SHARED_COMPILATION)
endif()
target_link_libraries(PCSX2_LTO PRIVATE PCSX2_FLAGS) target_link_libraries(PCSX2_LTO PRIVATE PCSX2_FLAGS)
target_link_libraries(PCSX2 PRIVATE PCSX2_LTO) target_link_libraries(PCSX2 PRIVATE PCSX2_LTO)
set_target_properties(PCSX2_LTO PROPERTIES INTERPROCEDURAL_OPTIMIZATION true) set_target_properties(PCSX2_LTO PROPERTIES INTERPROCEDURAL_OPTIMIZATION true)