This is an archive of the discontinued LLVM Phabricator instance.

[lldb][test] 2 - Allow multiple precompiled headers in API tests via PCH_CXX_SOURCE
AbandonedPublic

Authored by Michael137 on Sep 23 2022, 4:30 PM.

Details

Reviewers
aprantl
Summary

Currently we only allow a single PCH file to be
specified in an API test since Clang's -include
option doesn't accept multple arguments. Instead
add a include-pch prefix to each input PCH file.

Drive-by change:

  • Rename PCH_CXX_SOURCE to PCH_CXX_SOURCES to make the variable's usage clearer

Testing:

  • Confirmed that the dwarfdump with and without the patch are identical for the only API test in the test-suite that uses PCH_CXX_SOURCE

Diff Detail

Event Timeline

Michael137 created this revision.Sep 23 2022, 4:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2022, 4:30 PM
Michael137 requested review of this revision.Sep 23 2022, 4:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2022, 4:30 PM
Michael137 edited the summary of this revision. (Show Details)Sep 23 2022, 4:31 PM
Michael137 abandoned this revision.Sep 23 2022, 4:53 PM

Actually realised this isn't necessary...abandoning