forked from OSchip/llvm-project
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
This commit is contained in:
parent
e6e79b3f0b
commit
47f846f8c5
|
@ -41,7 +41,7 @@ do_lld="yes"
|
||||||
do_lldb="yes"
|
do_lldb="yes"
|
||||||
do_polly="yes"
|
do_polly="yes"
|
||||||
do_mlir="yes"
|
do_mlir="yes"
|
||||||
do_flang="no"
|
do_flang="yes"
|
||||||
BuildDir="`pwd`"
|
BuildDir="`pwd`"
|
||||||
ExtraConfigureFlags=""
|
ExtraConfigureFlags=""
|
||||||
ExportBranch=""
|
ExportBranch=""
|
||||||
|
@ -75,6 +75,7 @@ function usage() {
|
||||||
echo " -no-lldb Disable check-out & build lldb (default)"
|
echo " -no-lldb Disable check-out & build lldb (default)"
|
||||||
echo " -no-polly Disable check-out & build Polly"
|
echo " -no-polly Disable check-out & build Polly"
|
||||||
echo " -no-mlir Disable check-out & build MLIR"
|
echo " -no-mlir Disable check-out & build MLIR"
|
||||||
|
echo " -no-flang Disable check-out & build Flang"
|
||||||
}
|
}
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
|
@ -173,8 +174,8 @@ while [ $# -gt 0 ]; do
|
||||||
-no-mlir )
|
-no-mlir )
|
||||||
do_mlir="no"
|
do_mlir="no"
|
||||||
;;
|
;;
|
||||||
-flang )
|
-no-flang )
|
||||||
do_flang="yes"
|
do_flang="no"
|
||||||
;;
|
;;
|
||||||
-help | --help | -h | --h | -\? )
|
-help | --help | -h | --h | -\? )
|
||||||
usage
|
usage
|
||||||
|
@ -189,6 +190,11 @@ while [ $# -gt 0 ]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ $do_mlir = "no" ] && [ $do_flang = "yes" ]; then
|
||||||
|
echo "error: cannot build Flang without MLIR"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check required arguments.
|
# Check required arguments.
|
||||||
if [ -z "$Release" ]; then
|
if [ -z "$Release" ]; then
|
||||||
echo "error: no release number specified"
|
echo "error: no release number specified"
|
||||||
|
|
Loading…
Reference in New Issue