From ef09ed616916b8ba9b571fdb46e8bb337740056c Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Tue, 6 May 2025 16:11:04 -0400 Subject: [PATCH 1/2] GH-46338: [C++] Add compile step for Meson in cpp_build.sh --- ci/scripts/cpp_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh index d692379d1e803..839b5ec9f1fd0 100755 --- a/ci/scripts/cpp_build.sh +++ b/ci/scripts/cpp_build.sh @@ -283,7 +283,10 @@ else fi if [ "${ARROW_USE_MESON:-OFF}" = "ON" ]; then - time meson install + time { + meson compile -j $[${n_jobs} + 1]; + meson install; + } else export CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-$[${n_jobs} + 1]} time cmake --build . --target install From fb1d52b7347f7731f7f35fad2f7fa7ae772582bb Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Wed, 7 May 2025 02:27:06 -0400 Subject: [PATCH 2/2] kou feedback --- ci/scripts/cpp_build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh index 839b5ec9f1fd0..1023a3235bedf 100755 --- a/ci/scripts/cpp_build.sh +++ b/ci/scripts/cpp_build.sh @@ -282,13 +282,13 @@ else ${source_dir} fi +: ${ARROW_BUILD_PARALLEL:=$[${n_jobs} + 1]} if [ "${ARROW_USE_MESON:-OFF}" = "ON" ]; then - time { - meson compile -j $[${n_jobs} + 1]; - meson install; - } + time meson compile -j ${ARROW_BUILD_PARALLEL} + meson install else - export CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-$[${n_jobs} + 1]} + : ${CMAKE_BUILD_PARALLEL_LEVEL:=${ARROW_BUILD_PARALLEL}} + export CMAKE_BUILD_PARALLEL_LEVEL time cmake --build . --target install fi