[PATCH] D26115: [test] Correctly include build llvm_shlib_dir in stand-alone builds

Michał Górny via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 15 05:04:07 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL286952: [test] Correctly include build llvm_shlib_dir in stand-alone builds (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D26115?vs=76296&id=77982#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26115

Files:
  cfe/trunk/test/lit.cfg


Index: cfe/trunk/test/lit.cfg
===================================================================
--- cfe/trunk/test/lit.cfg
+++ cfe/trunk/test/lit.cfg
@@ -102,10 +102,15 @@
     path = os.path.pathsep.join((
             clang_tools_dir, llvm_tools_dir, config.environment['PATH']))
     config.environment['PATH'] = path
+    # in stand-alone builds, llvm_shlib_dir is clang's build tree
+    # while llvm_libs_dir is installed LLVM (and possibly older clang)
+    llvm_shlib_dir = getattr(config, 'llvm_shlib_dir', None)
+    if not llvm_shlib_dir:
+        lit_config.fatal('No LLVM shlib dir set!')
     llvm_libs_dir = getattr(config, 'llvm_libs_dir', None)
     if not llvm_libs_dir:
         lit_config.fatal('No LLVM libs dir set!')
-    path = os.path.pathsep.join((llvm_libs_dir,
+    path = os.path.pathsep.join((llvm_shlib_dir, llvm_libs_dir,
                                  config.environment.get('LD_LIBRARY_PATH','')))
     config.environment['LD_LIBRARY_PATH'] = path
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26115.77982.patch
Type: text/x-patch
Size: 989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161115/aef517ea/attachment.bin>


More information about the cfe-commits mailing list