[flang][driver] Error if uuidgen is not installed

Ubuntu Bionic installs it by default, Focal does not.

Differential Revision: https://reviews.llvm.org/D110694
This commit is contained in:
David Spickett 2021-09-29 12:30:55 +01:00
parent a3a0b06626
commit 3780de4600
1 changed files with 7 additions and 0 deletions

View File

@ -353,6 +353,13 @@ main() {
local -r wd=$(cd "$(dirname "$0")/.." && pwd)
# uuidgen is common but not installed by default on some distros
if ! command -v uuidgen &> /dev/null
then
echo "uuidgen is required for generating unparsed file names."
exit 1
fi
# STEP 1: Unparse
# Base-name for the unparsed files. These are just temporary files that are
# first generated and then deleted by this script.