From adead832a584e5110fe357ab38d9a14eaa13fb69 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Mon, 25 Sep 2023 23:04:09 +0200 Subject: [PATCH] Thunks: Avoid recompiling thunk interfaces on FEXLoader changes The interface files themselves don't use FEXLoader. Only the final library does. --- ThunkLibs/HostLibs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThunkLibs/HostLibs/CMakeLists.txt b/ThunkLibs/HostLibs/CMakeLists.txt index cc2a5dcee..5ba50e8d5 100644 --- a/ThunkLibs/HostLibs/CMakeLists.txt +++ b/ThunkLibs/HostLibs/CMakeLists.txt @@ -20,7 +20,6 @@ function(generate NAME SOURCE_FILE GUEST_BITNESS) # Interface target for the user to add include directories add_library(${NAME}-${GUEST_BITNESS}-deps INTERFACE) target_include_directories(${NAME}-${GUEST_BITNESS}-deps INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/../include") - target_link_libraries(${NAME}-${GUEST_BITNESS}-deps INTERFACE FEXLoader) # Shorthand for the include directories added after calling this function. # This is not evaluated directly, hence directories added after return are still picked up set(prop "$") @@ -75,6 +74,7 @@ function(add_host_lib NAME GUEST_BITNESS) target_include_directories(${NAME}-host-${GUEST_BITNESS} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/gen_${GUEST_BITNESS}/") target_link_libraries(${NAME}-host-${GUEST_BITNESS} PRIVATE dl) target_link_libraries(${NAME}-host-${GUEST_BITNESS} PRIVATE lib${NAME}-${GUEST_BITNESS}-deps) + target_link_libraries(${NAME}-host-${GUEST_BITNESS} PRIVATE FEXLoader) ## Make signed overflow well defined 2's complement overflow target_compile_options(${NAME}-host-${GUEST_BITNESS} PRIVATE -fwrapv)