This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Enable TestFrameFormatNameWithArgs in case of cross compilation
ClosedPublic

Authored by asahay on Jan 1 2023, 10:50 PM.

Details

Summary

TestFrameFormatNameWithArgs.test is enabled only in case of native
compilation but is applicable in case of cross compilation too. So,
provision support for enabling it in case of both, native and cross
compilation.

Diff Detail

Event Timeline

asahay created this revision.Jan 1 2023, 10:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 1 2023, 10:50 PM
asahay published this revision for review.Jan 1 2023, 11:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 1 2023, 11:15 PM
asahay added a subscriber: JDevlieghere.
Michael137 added inline comments.Jan 16 2023, 12:44 AM
lldb/test/Shell/helper/build.py
29

Why was this needed?

Other than that, LGTM

asahay added inline comments.Jan 17 2023, 3:30 AM
lldb/test/Shell/helper/build.py
29

IIUC, ~/lldb/test/Shell/helper/toolchain.py supplies LLDB's bitness (and not the target architecture) as arch to ~/lldb/test/Shell/helper/build.py unconditionally. However, we may require the target architecture too to customize the compile and link commands (we did in our downstream project, at least). Perhaps, we'd like both, LLDB's bitness and the target architecture to be supplied via separate options but I thought that lifting the restriction in question might've sufficed until we'd provisioned support for the same. Let me know if we'd like it handled (or, not dealt with at all) in this change itself, though, please.

Michael137 added inline comments.Jan 17 2023, 3:53 AM
lldb/test/Shell/helper/build.py
29

Ah I see. So you're saying currently the build scripts conflate -m32/-m64 with the -march=<...> flags? Seems like a separate option for bitness vs. arch would be the way to go

This current patch could be split into a stack of 3:

  1. Add -std flag
  2. Switch the test case to use %build

and an independent patch

  1. Handle the --arch confusion
asahay updated this revision to Diff 493337.Jan 30 2023, 9:35 AM

Retain 'choices' for 'arch'.

Michael137 accepted this revision.Jan 30 2023, 10:25 AM
This revision is now accepted and ready to land.Jan 30 2023, 10:25 AM