[PATCH] D58647: [compiler-rt] Provide better llvm-lit failure when llvm-config fails.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 25 15:15:22 PST 2019


hctim updated this revision to Diff 188261.
hctim added a comment.

- Fixed a minor merge error with this patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D58647

Files:
  compiler-rt/test/lit.common.cfg


Index: compiler-rt/test/lit.common.cfg
===================================================================
--- compiler-rt/test/lit.common.cfg
+++ compiler-rt/test/lit.common.cfg
@@ -388,8 +388,9 @@
       [os.path.join(config.llvm_tools_dir, 'llvm-config'), '--assertion-mode'],
       stdout = subprocess.PIPE,
       env=config.environment)
-except OSError:
-  print("Could not find llvm-config in " + config.llvm_tools_dir)
+except OSError as e:
+  print("Could not launch llvm-config in " + config.llvm_tools_dir)
+  print("    Failed with error #{0}: {1}".format(e.errno, e.strerror))
   exit(42)
 
 if re.search(r'ON', llvm_config_cmd.stdout.read().decode('ascii')):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58647.188261.patch
Type: text/x-patch
Size: 674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/16a32d1a/attachment.bin>


More information about the llvm-commits mailing list