From ac949828722babd7317f26e6ab7fdfe3aff98c40 Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Sat, 14 Dec 2024 22:45:46 +0100 Subject: [PATCH] Let userfd be be opt-in instead of disabled --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5171e86cf..1fabf1e5f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -887,10 +887,10 @@ if (ENABLE_DISCORD_RPC) target_compile_definitions(shadps4 PRIVATE ENABLE_DISCORD_RPC) endif() -# https://github.com/shadps4-emu/shadPS4/issues/1704 -#if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") -# target_compile_definitions(shadps4 PRIVATE ENABLE_USERFAULTFD) -#endif() +# Optional due to https://github.com/shadps4-emu/shadPS4/issues/1704 +if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND ENABLE_USERFAULTFD) + target_compile_definitions(shadps4 PRIVATE ENABLE_USERFAULTFD) +endif() if (APPLE) option(USE_SYSTEM_VULKAN_LOADER "Enables using the system Vulkan loader instead of directly linking with MoltenVK. Useful for loading validation layers." OFF)