diff --git a/dev/builddeps-veloxbe.sh b/dev/builddeps-veloxbe.sh index 9e9119a050636..82c9cfc8d6c04 100755 --- a/dev/builddeps-veloxbe.sh +++ b/dev/builddeps-veloxbe.sh @@ -247,6 +247,13 @@ if [ -z "${GLUTEN_VCPKG_ENABLED:-}" ] && [ $RUN_SETUP_SCRIPT == "ON" ]; then echo "Unsupported kernel: $OS" exit 1 fi + if [ $ENABLE_S3 == "ON" ]; then + if [ $OS == 'Darwin' ]; then + echo "S3 is not supported on MacOS." + exit 1 + fi + ${VELOX_HOME}/scripts/setup-adapters.sh aws + fi if [ $ENABLE_HDFS == "ON" ]; then if [ $OS == 'Darwin' ]; then echo "HDFS is not supported on MacOS." @@ -256,13 +263,6 @@ if [ -z "${GLUTEN_VCPKG_ENABLED:-}" ] && [ $RUN_SETUP_SCRIPT == "ON" ]; then install_libhdfs3 popd fi - if [ $ENABLE_S3 == "ON" ]; then - if [ $OS == 'Darwin' ]; then - echo "S3 is not supported on MacOS." - exit 1 - fi - ${VELOX_HOME}/scripts/setup-adapters.sh aws - fi if [ $ENABLE_GCS == "ON" ]; then ${VELOX_HOME}/scripts/setup-adapters.sh gcs fi