Skip to content

Commit

Permalink
build: workaround for MS STL breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Jun 12, 2024
1 parent e004b5a commit 1daee27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/platform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ if(MSVC)
# make preprocessor standard compliant
append(CMAKE_CCXX_FLAGS "/Zc:preprocessor")
# int64_t -> int (tent)
# workaround for breaking MS STL change
# https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710
append(CMAKE_CCXX_FLAGS "/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR")
append(CMAKE_CCXX_NOWARN_FLAGS "/wd4244")
# workaround: macro outputs defined token in msvs header
append(CMAKE_CCXX_NOWARN_FLAGS "/wd5105")

endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
append(CMAKE_CCXX_FLAGS "/MP")
Expand Down

0 comments on commit 1daee27

Please sign in to comment.