Skip to content

Commit

Permalink
Add _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR when building wheel on windo…
Browse files Browse the repository at this point in the history
…ws (#208)
  • Loading branch information
emlowe authored Oct 8, 2024
1 parent c89d080 commit 5349251
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ if(BUILD_PYTHON)
if(UNIX)
target_link_libraries(chiavdf PRIVATE -pthread)
endif()
if (WIN32)
# workaround for constexpr mutex constructor change in MSVC 2022
# https://stackoverflow.com/questions/78598141/first-stdmutexlock-crashes-in-application-built-with-latest-visual-studio
target_compile_definitions(chiavdf PUBLIC _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
endif()
endif()

add_executable(verifier_test
Expand Down

0 comments on commit 5349251

Please sign in to comment.