mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-04 05:16:38 +00:00
Thunks: Avoid recompiling thunk interfaces on FEXLoader changes
The interface files themselves don't use FEXLoader. Only the final library does.
This commit is contained in:
parent
5eed24a242
commit
adead832a5
@ -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 "$<TARGET_PROPERTY:${NAME}-${GUEST_BITNESS}-deps,INTERFACE_INCLUDE_DIRECTORIES>")
|
||||
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user