Skip to content

Commit dd8645d

Browse files
committed
disable unity
1 parent 4fe9501 commit dd8645d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

ci/scripts/jni_macos_build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export ARROW_ORC
7272
: "${ARROW_PARQUET:=ON}"
7373
: "${ARROW_S3:=ON}"
7474
: "${CMAKE_BUILD_TYPE:=Release}"
75-
: "${CMAKE_UNITY_BUILD:=ON}"
75+
# Disable Unity build due to compilation issues with Gandiva
76+
: "${CMAKE_UNITY_BUILD:=OFF}"
7677

7778
export ARROW_TEST_DATA="${arrow_dir}/testing/data"
7879
export PARQUET_TEST_DATA="${arrow_dir}/cpp/submodules/parquet-testing/data"

ci/scripts/jni_manylinux_build.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ fi
7171
github_actions_group_begin "Building Arrow C++ libraries"
7272
devtoolset_version="$(rpm -qa "devtoolset-*-gcc" --queryformat '%{VERSION}' | grep -o "^[0-9]*")"
7373
devtoolset_include_cpp="/opt/rh/devtoolset-${devtoolset_version}/root/usr/include/c++/${devtoolset_version}"
74+
75+
# Detect architecture for devtoolset include path
76+
case "$(uname -m)" in
77+
x86_64)
78+
devtoolset_arch="x86_64-redhat-linux"
79+
;;
80+
aarch64)
81+
devtoolset_arch="aarch64-redhat-linux"
82+
;;
83+
*)
84+
devtoolset_arch="$(uname -m)-redhat-linux"
85+
;;
86+
esac
87+
7488
: "${ARROW_ACERO:=ON}"
7589
export ARROW_ACERO
7690
: "${ARROW_BUILD_TESTS:=OFF}"
@@ -88,11 +102,12 @@ export ARROW_ORC
88102
: "${ARROW_PARQUET:=ON}"
89103
: "${ARROW_S3:=ON}"
90104
: "${CMAKE_BUILD_TYPE:=release}"
91-
: "${CMAKE_UNITY_BUILD:=ON}"
105+
# Disable Unity build due to compilation issues with Gandiva
106+
: "${CMAKE_UNITY_BUILD:=OFF}"
92107
: "${VCPKG_ROOT:=/opt/vcpkg}"
93108
: "${VCPKG_FEATURE_FLAGS:=-manifests}"
94109
: "${VCPKG_TARGET_TRIPLET:=${VCPKG_DEFAULT_TRIPLET:-x64-linux-static-${CMAKE_BUILD_TYPE}}}"
95-
: "${GANDIVA_CXX_FLAGS:=-isystem;${devtoolset_include_cpp};-isystem;${devtoolset_include_cpp}/x86_64-redhat-linux;-lpthread}"
110+
: "${GANDIVA_CXX_FLAGS:=-isystem;${devtoolset_include_cpp};-isystem;${devtoolset_include_cpp}/${devtoolset_arch};-lpthread}"
96111

97112
export ARROW_TEST_DATA="${arrow_dir}/testing/data"
98113
export PARQUET_TEST_DATA="${arrow_dir}/cpp/submodules/parquet-testing/data"

0 commit comments

Comments
 (0)