[PATCH] D60766: Fixed error message printing in write_cmake_config.py

Dmitri Gribenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 23:14:49 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL358557: Fixed error message printing in write_cmake_config.py (authored by gribozavr, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D60766?vs=195343&id=195512#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D60766

Files:
  llvm/trunk/utils/gn/build/write_cmake_config.py


Index: llvm/trunk/utils/gn/build/write_cmake_config.py
===================================================================
--- llvm/trunk/utils/gn/build/write_cmake_config.py
+++ llvm/trunk/utils/gn/build/write_cmake_config.py
@@ -96,7 +96,10 @@
 
     leftovers = var_re.findall(output)
     if leftovers:
-        print('unprocessed values:\n', '\n'.join(leftovers), file=sys.stderr)
+        print(
+            'unprocessed values:\n',
+            '\n'.join([x[0] or x[1] for x in leftovers]),
+            file=sys.stderr)
         return 1
 
     if not os.path.exists(args.output) or open(args.output).read() != output:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60766.195512.patch
Type: text/x-patch
Size: 628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190417/ffb1f97c/attachment.bin>


More information about the llvm-commits mailing list