This is an archive of the discontinued LLVM Phabricator instance.

[lldb/CMake] Separate CMake code for Lua and Python (NFC)
ClosedPublic

Authored by JDevlieghere on Aug 10 2020, 11:15 PM.

Details

Reviewers
labath
Group Reviewers
Restricted Project
Commits
rGc135744b1df3: [lldb/CMake] Separate CMake code for Lua and Python (NFC)
Summary

Separate the CMake logic for Lua and Python to clearly distinguish between code specific to either scripting language and the code shared by both.

What this patch does is:

  • Move Python specific code into the bindings/python subdirectory.
  • Move the Lua specific code into the bindings/lua subdirectory.
  • Add the _python suffix to Python specific functions/targets.
  • Fix a dependency issue that would check the binding instead of whether the scripting language is enabled.

Diff Detail

Event Timeline

JDevlieghere created this revision.Aug 10 2020, 11:15 PM
JDevlieghere requested review of this revision.Aug 10 2020, 11:15 PM
JDevlieghere edited the summary of this revision. (Show Details)Aug 10 2020, 11:20 PM
labath accepted this revision.Aug 11 2020, 5:09 AM
labath added a subscriber: labath.

sounds like a good idea

This revision is now accepted and ready to land.Aug 11 2020, 5:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2020, 9:04 AM