From 6535007c5a7a8f497824b0d9aa2d8f20ed2974c8 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Tue, 11 Jun 2024 21:16:53 -0400 Subject: [PATCH] Supply -DARROW_CXXFLAGS=-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR to Arrow C++ build --- matlab/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)