Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STL updates Mutex Fix #580

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deps/third-repo/packages/p/polyhook_2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tools/xmakescripts/rules/build_rules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ local MSVC_COMPILE_OPTIONS = {
},
["shflags"] = {
"/DEBUG:FULL"
},
["defines"] = {
"_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR=1"
}
}

Expand Down