Skip to content

Commit 3d8eb79

Browse files
committed
Use Bash array
1 parent 63a32d5 commit 3d8eb79

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎cpp/examples/minimal_build/run_static.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,17 @@ echo "== Building example project using Arrow C++ library"
8888
echo "=="
8989
echo
9090

91+
read -ra ARROW_BUILD_FLAGS <<< "$(
92+
PKG_CONFIG_PATH="$ARROW_BUILD_DIR/lib/pkgconfig" \
93+
pkg-config --cflags --libs --static arrow
94+
)"
95+
9196
rm -rf "$EXAMPLE_BUILD_DIR"
9297
mkdir -p "$EXAMPLE_BUILD_DIR"
9398
${CXX:-c++} -std=c++20 \
9499
-o "${EXAMPLE_BUILD_DIR}/arrow-example" \
95100
"${EXAMPLE_DIR}/example.cc" \
96-
"$(PKG_CONFIG_PATH=$ARROW_BUILD_DIR/lib/pkgconfig \
97-
pkg-config --cflags --libs --static arrow)"
101+
"${ARROW_BUILD_FLAGS[@]}"
98102

99103
popd
100104

0 commit comments

Comments
 (0)