aomp_common_vars - Do not exit if patch fails to apply
@@ -249,9 +249,11 @@ if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] && [ -d "$patchdir" ] ; then
echo " cleanly to directory $patchdir"
echo " Check if it was already applied."
echo
+ if [ "$AOMP_STANDALONE_BUILD" == 1 ]; then
exit 1
fi
fi
+ fi
if [ "$applypatch" == "yes" ] ; then
echo "Applying patch $patchfile to $patchdir"
patch -p1 --no-backup-if-mismatch <$patchfile
