From 747c4a412f74090fda649aa0a1ba1f7c67b90f6a Mon Sep 17 00:00:00 2001 From: Xiuli Wei Date: Thu, 11 Jul 2024 09:29:50 +0800 Subject: [PATCH] [GLUTEN-6394][VL] Fix the vcpkg package script (#6395) --- dev/package-vcpkg.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev/package-vcpkg.sh b/dev/package-vcpkg.sh index 4a248b556726..c76b8be8d7d1 100755 --- a/dev/package-vcpkg.sh +++ b/dev/package-vcpkg.sh @@ -6,8 +6,14 @@ CURRENT_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd) GLUTEN_DIR="$CURRENT_DIR/.." cd "$GLUTEN_DIR" -source /opt/rh/devtoolset-9/enable -source /opt/gluten/dev/vcpkg/env.sh +if [ "$LINUX_OS" == "centos" ]; then + if [ "$VERSION" == "8" ]; then + source /opt/rh/gcc-toolset-9/enable + elif [ "$VERSION" == "7" ]; then + source /opt/rh/devtoolset-9/enable + fi +fi +source ./dev/vcpkg/env.sh ./dev/buildbundle-veloxbe.sh --build_tests=ON --build_benchmarks=ON --enable_s3=ON --enable_hdfs=ON mvn clean package -Pbackends-velox -Pceleborn -Puniffle -Pspark-3.2 -DskipTests mvn clean package -Pbackends-velox -Pceleborn -Puniffle -Pspark-3.3 -DskipTests