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

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 1 01:43:31 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3780de46001b: [flang][driver] Error if uuidgen is not installed (authored by DavidSpickett).

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.376448.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211001/289ceac3/attachment.bin>


More information about the llvm-commits mailing list