[PATCH] [ASan] set DYLD_LIBRARY_PATH on Darwin

Greg Fitzgerald garious at gmail.com
Tue Feb 17 15:20:17 PST 2015


Hi samsonov,

The CMake build doesn't seem to be as well supported on Darwin as it is Linux.  This patch takes the test suite from ~50 tests passing to 266 passing (34 failing).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7706

Files:
  test/asan/lit.cfg

Index: test/asan/lit.cfg
===================================================================
--- test/asan/lit.cfg
+++ test/asan/lit.cfg
@@ -15,6 +15,8 @@
 def push_dynamic_library_lookup_path(config, new_path):
   if platform.system() == 'Windows':
     dynamic_library_lookup_var = 'PATH'
+  elif platform.system() == 'Darwin':
+    dynamic_library_lookup_var = 'DYLD_LIBRARY_PATH'
   else:
     dynamic_library_lookup_var = 'LD_LIBRARY_PATH'

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7706.20114.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150217/5986e5da/attachment.bin>


More information about the llvm-commits mailing list