[PATCH] D110694: [flang][driver] Error if uuidgen is not installed

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 06:07:11 PDT 2021


DavidSpickett updated this revision to Diff 375853.
DavidSpickett added a comment.

Move check above comments.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110694/new/

https://reviews.llvm.org/D110694

Files:
  flang/tools/f18/flang


Index: flang/tools/f18/flang
===================================================================
--- flang/tools/f18/flang
+++ flang/tools/f18/flang
@@ -353,6 +353,13 @@
 
   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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110694.375853.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210929/6c4159a0/attachment.bin>


More information about the llvm-commits mailing list