summaryrefslogtreecommitdiff
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-24 11:23:35 +0200
commit95b2210d8b24c22b6360e49db8fc97cd65047d78 (patch)
tree7c096949131764ab60571413f22095f42d6dd995
parent3e4ee646d1d12b44a41e35747696559ec6f355c4 (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
-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..c23677aa 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 $FLANG $USENINJA $LIMITLINKJOBS |& tee "$LOGBASE-release.$LOGEXT"
) &
wait $! || result=$?