Skip to content

Commit

Permalink
Enable Flang by default in the test-release.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
banach-space committed Jul 15, 2021
1 parent e6e79b3 commit 47f846f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions llvm/utils/release/test-release.sh
Expand Up @@ -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=""
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 47f846f

Please sign in to comment.