[lldb] pass --lldb-libs-dir argument to lldb-dotest
authorPavel Labath <labath@google.com>
Wed, 5 Feb 2020 23:15:01 +0000 (15:15 -0800)
committerPavel Labath <labath@google.com>
Wed, 5 Feb 2020 23:51:38 +0000 (15:51 -0800)
This argument was introduced in dcab9736f, but lldb-dotest was not handled.

lldb/utils/lldb-dotest/CMakeLists.txt
lldb/utils/lldb-dotest/lldb-dotest.in

index 4fd16f0..55ba0ba 100644 (file)
@@ -4,6 +4,7 @@ add_dependencies(lldb-dotest lldb-test-deps)
 set_target_properties(lldb-dotest PROPERTIES FOLDER "lldb utils")
 
 get_property(LLDB_DOTEST_ARGS GLOBAL PROPERTY LLDB_DOTEST_ARGS_PROPERTY)
+set(LLDB_LIBS_DIR "${LLVM_LIBRARY_OUTPUT_INTDIR}")
 
 # Generate lldb-dotest Python driver script for each build mode.
 if(LLDB_BUILT_STANDALONE)
index bab3f8b..a1d5203 100755 (executable)
@@ -10,6 +10,8 @@ executable = '@LLDB_TEST_EXECUTABLE@'
 compiler = '@LLDB_TEST_COMPILER@'
 dsymutil = '@LLDB_TEST_DSYMUTIL@'
 filecheck = '@LLDB_TEST_FILECHECK@'
+lldb_libs_dir = "@LLDB_LIBS_DIR@"
+
 
 if __name__ == '__main__':
     wrapper_args = sys.argv[1:]
@@ -23,6 +25,7 @@ if __name__ == '__main__':
     cmd.extend(['--compiler', compiler])
     cmd.extend(['--dsymutil', dsymutil])
     cmd.extend(['--filecheck', filecheck])
+    cmd.extend(['--lldb-libs-dir', lldb_libs_dir])
     cmd.extend(wrapper_args)
     # Invoke dotest.py and return exit code.
     print(' '.join(cmd))