diff --git a/matlab/CMakeLists.txt b/matlab/CMakeLists.txt index d8ed65ce92b13..a39acd1488e6f 100644 --- a/matlab/CMakeLists.txt +++ b/matlab/CMakeLists.txt @@ -34,9 +34,17 @@ function(build_arrow) set(ARROW_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/arrow_ep-prefix") set(ARROW_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/arrow_ep-build") + # Supply -DARROW_CXXFLAGS=-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR to + # workaround windows-2022 GitHub Runner bug involving the VC Runtime: + # + # See issues below for details: + # + # https://github.com/actions/runner-images/issues/10020 + # https://github.com/actions/runner-images/issues/10004 set(ARROW_CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${ARROW_PREFIX}" "-DCMAKE_INSTALL_LIBDIR=lib" - "-DARROW_BUILD_STATIC=OFF" "-DARROW_CSV=ON") + "-DARROW_BUILD_STATIC=OFF" "-DARROW_CSV=ON" + "-DARROW_CXXFLAGS=-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR") add_library(arrow_shared SHARED IMPORTED) set(ARROW_LIBRARY_TARGET arrow_shared)