[llvm] 47f846f - Enable Flang by default in the test-release.sh script
Andrzej Warzynski via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 15 09:18:04 PDT 2021
Author: Andrzej Warzynski
Date: 2021-07-15T17:17:49+01:00
New Revision: 47f846f8c5ba54fde266ced3d9228d9f003c03ee
URL: https://github.com/llvm/llvm-project/commit/47f846f8c5ba54fde266ced3d9228d9f003c03ee
DIFF: https://github.com/llvm/llvm-project/commit/47f846f8c5ba54fde266ced3d9228d9f003c03ee.diff
LOG: Enable Flang by default in the test-release.sh script
I've also brought this up on llvm-dev:
https://lists.llvm.org/pipermail/llvm-dev/2021-July/151744.html
Differential Revision: https://reviews.llvm.org/D105885
Added:
Modified:
llvm/utils/release/test-release.sh
Removed:
################################################################################
diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 927e6ca1213f9..64ee411a69f65 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -41,7 +41,7 @@ do_lld="yes"
do_lldb="yes"
do_polly="yes"
do_mlir="yes"
-do_flang="no"
+do_flang="yes"
BuildDir="`pwd`"
ExtraConfigureFlags=""
ExportBranch=""
@@ -75,6 +75,7 @@ function usage() {
echo " -no-lldb Disable check-out & build lldb (default)"
echo " -no-polly Disable check-out & build Polly"
echo " -no-mlir Disable check-out & build MLIR"
+ echo " -no-flang Disable check-out & build Flang"
}
while [ $# -gt 0 ]; do
@@ -173,8 +174,8 @@ while [ $# -gt 0 ]; do
-no-mlir )
do_mlir="no"
;;
- -flang )
- do_flang="yes"
+ -no-flang )
+ do_flang="no"
;;
-help | --help | -h | --h | -\? )
usage
@@ -189,6 +190,11 @@ while [ $# -gt 0 ]; do
shift
done
+if [ $do_mlir = "no" ] && [ $do_flang = "yes" ]; then
+ echo "error: cannot build Flang without MLIR"
+ exit 1
+fi
+
# Check required arguments.
if [ -z "$Release" ]; then
echo "error: no release number specified"
More information about the llvm-commits
mailing list