Skip to content

Commit

Permalink
Supply -DARROW_CXXFLAGS=-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR to Arr…
Browse files Browse the repository at this point in the history
…ow C++ build
  • Loading branch information
sgilmore10 committed Jun 12, 2024
1 parent fd11b7a commit 6535007
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6535007

Please sign in to comment.