From a9c0ac1a629977d14b48d55d32850215acc9daf2 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 23 Jun 2023 15:23:40 +0900 Subject: [PATCH] Don't use -g1 when we run GDB plugins test --- ci/docker/conda-python.dockerfile | 1 + ci/scripts/cpp_build.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/docker/conda-python.dockerfile b/ci/docker/conda-python.dockerfile index 917b60dab9f07..ba50d2673015d 100644 --- a/ci/docker/conda-python.dockerfile +++ b/ci/docker/conda-python.dockerfile @@ -45,6 +45,7 @@ ENV ARROW_ACERO=ON \ ARROW_CSV=ON \ ARROW_DATASET=ON \ ARROW_FILESYSTEM=ON \ + ARROW_GDB=ON \ ARROW_HDFS=ON \ ARROW_JSON=ON \ ARROW_TENSORFLOW=ON \ diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh index 074fe00366494..c535def5cbbed 100755 --- a/ci/scripts/cpp_build.sh +++ b/ci/scripts/cpp_build.sh @@ -43,8 +43,10 @@ fi if [ "${GITHUB_ACTIONS:-false}" = "true" ]; then case "$(uname)" in Linux|Darwin|MINGW*) - : ${ARROW_C_FLAGS_DEBUG:=-g1} - : ${ARROW_CXX_FLAGS_DEBUG:=-g1} + if [ "${ARROW_GDB:-OFF}" != "ON" ]; then + : ${ARROW_C_FLAGS_DEBUG:=-g1} + : ${ARROW_CXX_FLAGS_DEBUG:=-g1} + fi ;; *) esac