Need to add the LLDB.framework directory to the rpath for the driver programs or they won't run.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181857 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lldbtest.py b/test/lldbtest.py
index 2a5cd7c..aa370d6 100644
--- a/test/lldbtest.py
+++ b/test/lldbtest.py
@@ -1181,7 +1181,7 @@
'EXE' : exe_name,
'CFLAGS_EXTRAS' : "%s -stdlib=libc++" % stdflag,
'FRAMEWORK_INCLUDES' : "-F%s" % self.lib_dir,
- 'LD_EXTRAS' : dsym,
+ 'LD_EXTRAS' : "%s -rpath %s" % (dsym, self.lib_dir),
}
elif sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
d = {'CXX_SOURCES' : sources,