[PATCH] D27739: Disable libLTO tests when libLTO is not built

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 16:20:08 PST 2016


dschuff created this revision.
dschuff added a reviewer: beanz.
dschuff added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

The current test only checks whether ld64 is available, causing tests
to fail when ld64 is avilable but libLTO is not built.


https://reviews.llvm.org/D27739

Files:
  test/lit.cfg


Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -455,7 +455,8 @@
     config.available_features.add('ld_plugin')
 
 def have_ld64_plugin_support():
-    if config.ld64_executable == '':
+    if (not os.path.exists(os.path.join(config.llvm_lib_dir, 'libLTO.dylib')) or
+        config.ld64_executable == ''):
         return False
 
     ld_cmd = subprocess.Popen([config.ld64_executable, '-v'], stderr = subprocess.PIPE)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27739.81324.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161214/00bb4842/attachment.bin>


More information about the llvm-commits mailing list