Commit 5f1e45fd authored by Pavel Labath's avatar Pavel Labath
Browse files

[lldb] pass --lldb-libs-dir argument to lldb-dotest

This argument was introduced in dcab9736, but lldb-dotest was not handled.
parent f5f70d1c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
+3 −0
Original line number Diff line number Diff line
@@ -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))