From: David Spickett Date: Wed, 29 Sep 2021 11:30:55 +0000 (+0100) Subject: [flang][driver] Error if uuidgen is not installed X-Git-Tag: upstream/15.0.7~29959 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3780de46001b510d78cd3f06f01a6f08793a4a45;p=platform%2Fupstream%2Fllvm.git [flang][driver] Error if uuidgen is not installed Ubuntu Bionic installs it by default, Focal does not. Differential Revision: https://reviews.llvm.org/D110694 --- diff --git a/flang/tools/f18/flang b/flang/tools/f18/flang index 7e18322..25397f3 100755 --- a/flang/tools/f18/flang +++ b/flang/tools/f18/flang @@ -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.