This is an archive of the discontinued LLVM Phabricator instance.

[lldb][CMake] Enforce not letting lldbUtility link against any other lldb libs
ClosedPublic

Authored by bulbazord on Mar 20 2023, 4:42 PM.

Details

Summary

lldbUtility is not supposed to depend on anything else in lldb. Let's
enforce that constraint in CMake rather than hoping something doesn't
slip in under the radar.

Diff Detail

Event Timeline

bulbazord created this revision.Mar 20 2023, 4:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2023, 4:42 PM
bulbazord requested review of this revision.Mar 20 2023, 4:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2023, 4:42 PM

Note that this won't stop people from performing #include with non-Utility files, but this marks the intent that Utility is not supposed to be using anything else in lldb.

This revision is now accepted and ready to land.Mar 20 2023, 6:36 PM

Can we do something similar for plugins?

Can we do something similar for plugins?

Yep, I'll tackle that in a follow-up.

Can we do something similar for plugins?

Yep, I'll tackle that in a follow-up.

For those following along at home: D146553