This is an automated email from the ASF dual-hosted git repository.

yao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 9cd8d85730 [VL] Respect `RUN_SETUP_SCRIPT` when running dependency 
setup preparation (#9864)
9cd8d85730 is described below

commit 9cd8d85730486005345d31feabd0eb13889334ef
Author: Kent Yao <[email protected]>
AuthorDate: Thu Jun 5 09:58:47 2025 +0800

    [VL] Respect `RUN_SETUP_SCRIPT` when running dependency setup preparation 
(#9864)
    
    * Disable OS setup in get_velox.sh via RUN_SETUP_SCRIPT
    
    * Update dev/builddeps-veloxbe.sh
    
    * Update dev/builddeps-veloxbe.sh
---
 dev/builddeps-veloxbe.sh        |  2 ++
 ep/build-velox/src/get_velox.sh | 21 ++++++++++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/dev/builddeps-veloxbe.sh b/dev/builddeps-veloxbe.sh
index 62ed0b7ecb..ef435463e8 100755
--- a/dev/builddeps-veloxbe.sh
+++ b/dev/builddeps-veloxbe.sh
@@ -179,6 +179,8 @@ function concat_velox_param {
     if [[ -n $VELOX_HOME ]]; then
         VELOX_PARAMETER+="--velox_home=$VELOX_HOME "
     fi
+
+    VELOX_PARAMETER+="--run_setup_script=$RUN_SETUP_SCRIPT "
 }
 
 if [ "$ENABLE_VCPKG" = "ON" ]; then
diff --git a/ep/build-velox/src/get_velox.sh b/ep/build-velox/src/get_velox.sh
index 3e94fbfe5f..1c34bbb6e1 100755
--- a/ep/build-velox/src/get_velox.sh
+++ b/ep/build-velox/src/get_velox.sh
@@ -19,6 +19,7 @@ set -exu
 VELOX_REPO=https://github.com/oap-project/velox.git
 VELOX_BRANCH=2025_06_04
 VELOX_HOME=""
+RUN_SETUP_SCRIPT=ON
 
 OS=`uname -s`
 
@@ -36,6 +37,10 @@ for arg in "$@"; do
     VELOX_HOME=("${arg#*=}")
     shift # Remove argument name from processing
     ;;
+  --run_setup_script=*)
+    RUN_SETUP_SCRIPT=("${arg#*=}")
+    shift # Remove argument name from processing
+    ;;
   *)
     OTHER_ARGUMENTS+=("$1")
     shift # Remove generic argument from processing
@@ -234,13 +239,15 @@ function setup_linux {
   fi
 }
 
-if [ $OS == 'Linux' ]; then
-  setup_linux
-elif [ $OS == 'Darwin' ]; then
-  :
-else
-  echo "Unsupported kernel: $OS"
-  exit 1
+if [[ "$RUN_SETUP_SCRIPT" == "ON" ]]; then
+  if [ $OS == 'Linux' ]; then
+    setup_linux
+  elif [ $OS == 'Darwin' ]; then
+    :
+  else
+    echo "Unsupported kernel: $OS"
+    exit 1
+  fi
 fi
 
 apply_compilation_fixes $CURRENT_DIR $VELOX_SOURCE_DIR


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to