Skip to content

Commit

Permalink
chore(cmake): workaround CI issue for windows.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Jun 12, 2024
1 parent d2bb674 commit 5c5edf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ else() # MSVC
set(CMAKE_C_FLAGS_RELEASE "${FALCOSECURITY_LIBS_RELEASE_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${FALCOSECURITY_LIBS_RELEASE_FLAGS}")

# "_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR" enables a
# workaround for windows GH runner issue, see
# https://github.com/actions/runner-images/issues/10004
add_compile_definitions(
_HAS_STD_BYTE=0
WIN32_LEAN_AND_MEAN
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
)
endif()

0 comments on commit 5c5edf2

Please sign in to comment.