This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix lua build after 27b6a4e63afe
ClosedPublic

Authored by bulbazord on May 15 2023, 4:08 PM.

Details

Summary

This applies the same trick for Lua that I did for python in
27b6a4e63afe.

Diff Detail

Event Timeline

bulbazord created this revision.May 15 2023, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2023, 4:08 PM
bulbazord requested review of this revision.May 15 2023, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2023, 4:08 PM
mib requested changes to this revision.May 15 2023, 4:38 PM

We've already discussed that offline but I really think there should be a ScriptInterpreter SWIGBridge plugin and that would have all the method the Python and Lua SWIGBridge have in common, so the SB classes won't have to be specialized for every scripting language.

This revision now requires changes to proceed.May 15 2023, 4:38 PM
bulbazord requested review of this revision.May 15 2023, 5:09 PM

So, I agree that we should definitely unify this or else we end up doing this for every scripting language that we add support for. That being said, I think this is actually better than what we had before because now we're not exposing lldb private details in the public interface. There is a TODO comment in SWIGPythonBridge.h already for cleaning this up when we have a moment... I don't want to block this patch unless we're ok reverting the previous one, and I'd preferably not revert that one...

mib accepted this revision.May 15 2023, 5:21 PM

Let's fix the Lua build failures first

This revision is now accepted and ready to land.May 15 2023, 5:21 PM
This revision was automatically updated to reflect the committed changes.

I have enabled Lua testing on the incremental bot on GreenDragon (https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/). This has always been the intention (note how the job mentions "Python 3 and Lua 5.3") but wasn't enabled until earlier today.

It works now. Thanks!