From e86073234f3f3fbd283f73e6a807853ad16d7177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Sat, 31 Oct 2026 06:27:35 +0100 Subject: [PATCH] GH-1415: Build bundled lz4 in the macOS JNI build Homebrew's lz4 now installs a CMake package configuration whose LZ4::lz4 target is the shared library. Arrow C++'s Findlz4Alt.cmake uses that target as is, so on newer macos-15-arm64 runner images the JNI libraries link liblz4.dylib and fail the shared dependency check. Build lz4 from source, like abseil, simdjson and uriparser. Closes #1415. --- ci/scripts/jni_macos_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/scripts/jni_macos_build.sh b/ci/scripts/jni_macos_build.sh index 277987aa88..32a1faefb8 100755 --- a/ci/scripts/jni_macos_build.sh +++ b/ci/scripts/jni_macos_build.sh @@ -74,6 +74,7 @@ cmake \ -B "${build_dir}/cpp" \ --preset=ninja-release-jni-macos \ -Dabsl_SOURCE=BUNDLED \ + -Dlz4_SOURCE=BUNDLED \ -Dsimdjson_SOURCE=BUNDLED \ -Duriparser_SOURCE=BUNDLED \ -DCMAKE_INSTALL_PREFIX="${install_dir}"