From 537ab54235c721d32c62d3601f252eef22b5a84e Mon Sep 17 00:00:00 2001 From: wecharyu Date: Tue, 10 Sep 2024 11:02:05 +0000 Subject: [PATCH] [MINOR][BUILD] Extract gcc version from libgluten.so --- dev/gluten-build-info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/gluten-build-info.sh b/dev/gluten-build-info.sh index 5a33eb06a935..9c995ec840fb 100755 --- a/dev/gluten-build-info.sh +++ b/dev/gluten-build-info.sh @@ -39,7 +39,7 @@ echo_build_properties() { echo url=$(git config --get remote.origin.url) if [ "$BACKEND_TYPE" = "velox" ]; then - echo gcc_version=$(gcc --version | head -n 1) + echo gcc_version=$(readelf -p .comment $GLUTEN_ROOT/cpp/build/releases/libgluten.so | grep GCC | head -n 1 | sed -n 's/.*\(GCC.*\)/\1/p') echo velox_branch=$(git -C $BACKEND_HOME rev-parse --abbrev-ref HEAD) echo velox_revision=$(git -C $BACKEND_HOME rev-parse HEAD) echo velox_revision_time=$(git -C $BACKEND_HOME show -s --format=%ci HEAD)