summaryrefslogtreecommitdiff
path: root/tcwg-llvm-release.sh
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2020-08-07 11:38:19 +0200
committerDiana Picus <diana.picus@linaro.org>2020-08-31 08:39:05 +0000
commit70b59f1a28af39fe02ea61cbeef2b449ccec389e (patch)
tree0893ddf5a8984cd48820e1a89965126980074219 /tcwg-llvm-release.sh
parent73ab5ac992942292817b1441472d325ed4c553be (diff)
tcwg-llvm-release: Deal with flang and mlir
Flang and MLIR are new to the monorepo. By default, MLIR is enabled and flang is disabled. This patch enables flang on aarch64 (and x86 for comparison purposes). It also disables MLIR on armv7 since we do not support it (there are many test failures since 32-bit support in general is missing / incomplete / untested in MLIR). Change-Id: I2cfa31762001fbffc0c41717d3d3792a5ac757d7
Diffstat (limited to 'tcwg-llvm-release.sh')
-rwxr-xr-xtcwg-llvm-release.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcwg-llvm-release.sh b/tcwg-llvm-release.sh
index f21b4f5b..8574e813 100755
--- a/tcwg-llvm-release.sh
+++ b/tcwg-llvm-release.sh
@@ -143,11 +143,15 @@ fi
# Additional Options
PLATFORM=$(uname -m)
OPENMP=""
+MLIR=""
+FLANG="-flang"
TARGET="$PLATFORM-linux-gnu"
LIMITLINKJOBS=""
if echo "$PLATFORM" | grep -qi "armv7"; then
TARGET="armv7a-linux-gnueabihf"
OPENMP="-no-openmp"
+ MLIR="-no-mlir"
+ FLANG=""
if [ x"$USENINJA" != x"" ]; then
LIMITLINKJOBS="-configure-flags -DLLVM_PARALLEL_LINK_JOBS=$LINKJOBS"
fi
@@ -188,7 +192,7 @@ SCRIPT_URL=https://raw.githubusercontent.com/llvm/llvm-project/$RELEASE_TAG/llvm
# - we want to push the binary public on success or failre
result=0
(
- cd "$WORKSPACE" && LC_ALL=C ./$RELEASE_SCRIPT -release $RELEASE $RCCALL -triple $TARGET -j$BUILDJOBS $OPENMP $USENINJA $LIMITLINKJOBS |& tee "$LOGBASE-release.$LOGEXT"
+ cd "$WORKSPACE" && LC_ALL=C ./$RELEASE_SCRIPT -release $RELEASE $RCCALL -triple $TARGET -j$BUILDJOBS $OPENMP $MLIR $FLANG $USENINJA $LIMITLINKJOBS |& tee "$LOGBASE-release.$LOGEXT"
) &
wait $! || result=$?