diff --git a/deps/third-repo/packages/p/polyhook_2/CMakeLists.txt b/deps/third-repo/packages/p/polyhook_2/CMakeLists.txt index f502acff3..196334bc4 100644 --- a/deps/third-repo/packages/p/polyhook_2/CMakeLists.txt +++ b/deps/third-repo/packages/p/polyhook_2/CMakeLists.txt @@ -4,6 +4,9 @@ include(FetchContent) set(FETCHCONTENT_QUIET OFF) +# Add the preprocessor definition to fix mutex +add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) + FetchContent_Declare(PolyHook2 GIT_REPOSITORY https://github.com/stevemk14ebr/PolyHook_2_0.git GIT_TAG fd2a88f09c8ae89440858fc52573656141013c7f diff --git a/tools/xmakescripts/rules/build_rules.lua b/tools/xmakescripts/rules/build_rules.lua index 194d2849d..0a44ce2a7 100644 --- a/tools/xmakescripts/rules/build_rules.lua +++ b/tools/xmakescripts/rules/build_rules.lua @@ -109,6 +109,9 @@ local MSVC_COMPILE_OPTIONS = { }, ["shflags"] = { "/DEBUG:FULL" + }, + ["defines"] = { + "_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR=1" } }