Skip to content

Commit

Permalink
workaround crash in mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Sep 2, 2024
1 parent d176f65 commit 8f74704
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ endif()

if(MSVC)
add_compile_options(/W4 /bigobj /wd4127)

# NOTE: _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR is temporary. When building on
# VS 2022 17.10 or newer, but using an older runtime, mutexes can crash
add_compile_options(/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
else()
add_compile_options(-Wall -Wextra -pedantic -Wno-psabi)
endif()
Expand Down

0 comments on commit 8f74704

Please sign in to comment.