Skip to content

Commit

Permalink
[flang][driver] Error if uuidgen is not installed
Browse files Browse the repository at this point in the history
Ubuntu Bionic installs it by default, Focal does not.

Differential Revision: https://reviews.llvm.org/D110694
  • Loading branch information
DavidSpickett committed Oct 1, 2021
1 parent a3a0b06 commit 3780de4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flang/tools/f18/flang
Expand Up @@ -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.
Expand Down

0 comments on commit 3780de4

Please sign in to comment.