[flang] Port to macOS, where mktemp doesn't have -p.

Original-commit: flang-compiler/f18@bd698aee68
Reviewed-on: https://github.com/flang-compiler/f18/pull/522
This commit is contained in:
Steve Scalpone 2019-06-23 17:14:19 -07:00
parent 10ad02ff2d
commit e73c886bdf
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ case $1 in
esac
[[ ! -f $src ]] && echo "File not found: $src" && exit 1
temp=`mktemp -d -p .`
temp=`mktemp -d ./tmp.XXXXXX`
[[ $KEEP ]] || trap "rm -rf $temp" EXIT
log=$temp/log