This is an archive of the discontinued LLVM Phabricator instance.

[lldb] The os and version are not separate components in the triple
ClosedPublic

Authored by JDevlieghere on Oct 27 2021, 4:17 PM.

Details

Summary

Create a valid triple in the Darwin builder. Currently it was
incorrectly treating the os and version as two separate components in
the triple.

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Oct 27 2021, 4:17 PM
JDevlieghere created this revision.
aprantl accepted this revision.Oct 27 2021, 4:18 PM

Yup that's wrong. Personally I would only append env to the list if non-empty. Thanks!

This revision is now accepted and ready to land.Oct 27 2021, 4:18 PM

Skip the environment if it's empty and avoid a TypeError when concatenating 'NoneType' and 'str'.

thanks!

lldb/packages/Python/lldbsuite/test/builders/darwin.py
62

So this tests for the empty string?

JDevlieghere marked an inline comment as done.Oct 27 2021, 4:39 PM
JDevlieghere added inline comments.
lldb/packages/Python/lldbsuite/test/builders/darwin.py
62

It tests for both, but None is already caught earlier.

This revision was automatically updated to reflect the committed changes.
JDevlieghere marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 4:40 PM