Skip to content

Commit

Permalink
check supported
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Sep 4, 2024
1 parent 95dca6a commit 8be17a3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dev/buildbundle-veloxbe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@ function build_for_spark {
mvn clean package -Pbackends-velox -Pceleborn -Puniffle -Pspark-$spark_version -DskipTests
}

function check_supported {
PLATFORM=$(mvn help:evaluate -Dexpression=platform -q -DforceStdout)
ARCH=$(mvn help:evaluate -Dexpression=arch -q -DforceStdout)
if [ "$PLATFORM" == "null object or invalid expression" ] || [ "$ARCH" == "null object or invalid expression" ]; then
OS_NAME=$(mvn help:evaluate -Dexpression=os.name -q -DforceStdout)
OS_ARCH=$(mvn help:evaluate -Dexpression=os.arch -q -DforceStdout)
echo "$OS_NAME-$OS_ARCH is not supported by current Gluten build."
exit 1
fi
}

cd $GLUTEN_DIR

check_supported

# SPARK_VERSION is defined in builddeps-veloxbe.sh
if [ "$SPARK_VERSION" = "ALL" ]; then
for spark_version in 3.2 3.3 3.4 3.5
Expand Down

0 comments on commit 8be17a3

Please sign in to comment.