This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add missing debugserver/lldb-server dependencies to check-lldb
ClosedPublic

Authored by teemperor on Mar 8 2021, 9:45 AM.

Details

Summary

D96202 removes the test dependencies on debugserver/lldb-server which is causing a bunch of
tests to fail on a clean build.

This patch re-adds those dependencies. I decided to not add the dependencies in the test/API
folder as we actually need those dependencies in all kinds of tests (we have shell, API and a few unit
tests such as the LLDBServerTests that depend on these binaries).

Diff Detail

Event Timeline

teemperor created this revision.Mar 8 2021, 9:45 AM
JDevlieghere accepted this revision.Mar 8 2021, 4:42 PM

LGTM

lldb/test/CMakeLists.txt
47

I was worried about the situation where we tell LLDB to test with the system debugserver, but unless I misremember the target won't be there when that's the case, so this is perfect.

This revision is now accepted and ready to land.Mar 8 2021, 4:42 PM
labath accepted this revision.Mar 8 2021, 11:39 PM
labath added inline comments.
lldb/test/CMakeLists.txt
47

test/API/CMakeLists.txt will create a "debugserver" target in that case (in order to copy it into the build dir). However, I think this is exactly what we want to happen here.

49–51

It seems this is already present on line 59.

JDevlieghere added inline comments.Mar 9 2021, 1:27 PM
lldb/test/CMakeLists.txt
47

So I did misremember, but the result is the same. Nice :-)

teemperor added inline comments.Mar 11 2021, 6:55 AM
lldb/test/CMakeLists.txt
49–51

Good point, I'll just add the dependency there then.

This revision was landed with ongoing or failed builds.Mar 11 2021, 6:56 AM
This revision was automatically updated to reflect the committed changes.