Skip to content

Commit 09453f9

Browse files
authored
GH-15023: [CI][Packaging][Java] Force to use libz3.a with Homebrew (#15024)
* Closes: #15023 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent d18412e commit 09453f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dev/tasks/java-jars/github.yml

+11
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ jobs:
7575
run: pip install -e arrow/dev/archery[all]
7676
- name: Install dependencies
7777
run: |
78+
# We want to use llvm@14 to avoid shared z3
79+
# dependency. llvm@14 doesn't depend on z3 and llvm depends
80+
# on z3. And Homebrew's z3 provides only shared library. It
81+
# doesn't provides static z3 because z3's CMake doesn't accept
82+
# building both shared and static libraries at once.
83+
# See also: Z3_BUILD_LIBZ3_SHARED in
84+
# https://github.com/Z3Prover/z3/blob/master/README-CMake.md
85+
#
86+
# If llvm is installed, Apache Arrow C++ uses llvm rather than
87+
# llvm@14 because llvm is newer than llvm@14.
88+
brew uninstall llvm || :
7889
brew bundle --file=arrow/cpp/Brewfile
7990
# We want to link aws-sdk-cpp statically but Homebrew's
8091
# aws-sdk-cpp provides only shared library. If we have

0 commit comments

Comments
 (0)