[build_aomp.sh]-Small fix to check if arguments were passed in for partial build options. Before, if no arguments were given a syntax error would show and abort the build on some systems.
@@ -90,7 +90,9 @@ else
components="roct rocr project libdevice comgr rocminfo hip extras atmi openmp pgmath flang flang_runtime"
fi
-#Start build from given one component (./build_aomp.sh continue openmp)
+#Partial build options. Check if argument was given.
+if [ -n "$1" ] ; then
+#Start build from given component (./build_aomp.sh continue openmp)
if [ $1 == 'continue' ] ; then
for COMPONENT in $components ; do
if [ $COMPONENT == $2 ] ; then
@@ -118,6 +120,7 @@ elif [ $1 == 'select' ] ; then
#Remove arguments so they are not passed to build_aomp_component
set --
fi
+fi
for COMPONENT in $components ; do
echo
