diff --git a/ep/build-velox/src/build_velox.sh b/ep/build-velox/src/build_velox.sh index 67a540e76fb3..e03ca84bc1fa 100755 --- a/ep/build-velox/src/build_velox.sh +++ b/ep/build-velox/src/build_velox.sh @@ -16,6 +16,8 @@ set -exu # New build option may need to be included in get_build_summary to ensure EP build cache workable. +# Path to the Velox source code. +VELOX_HOME="" # Enable S3 connector. ENABLE_S3=OFF # Enable GCS connector. @@ -24,15 +26,17 @@ ENABLE_GCS=OFF ENABLE_HDFS=OFF # Enable ABFS connector. ENABLE_ABFS=OFF +# CMake build type for Velox. BUILD_TYPE=release -VELOX_HOME="" # May be deprecated in Gluten build. ENABLE_BENCHMARK=OFF # May be deprecated in Gluten build. ENABLE_TESTS=OFF # Set to ON for gluten cpp test build. BUILD_TEST_UTILS=OFF +# Number of threads to use for building. NUM_THREADS="" + OTHER_ARGUMENTS="" OS=`uname -s` @@ -117,6 +121,9 @@ function compile { echo "ENABLE_BENCHMARK is ON. Disabling Tests, GCS and ABFS connectors if enabled." COMPILE_OPTION="$COMPILE_OPTION -DVELOX_ENABLE_BENCHMARKS=ON" fi + if [ -n "${GLUTEN_VCPKG_ENABLED:-}" ]; then + COMPILE_OPTION="$COMPILE_OPTION -DVELOX_GFLAGS_TYPE=static" + fi COMPILE_OPTION="$COMPILE_OPTION -DCMAKE_BUILD_TYPE=${BUILD_TYPE}" COMPILE_TYPE=$(if [[ "$BUILD_TYPE" == "debug" ]] || [[ "$BUILD_TYPE" == "Debug" ]]; then echo 'debug'; else echo 'release'; fi)