This is an archive of the discontinued LLVM Phabricator instance.

[clang][unittest] Resolve ClangSupportTest link time errors
ClosedPublic

Authored by jmciver on Oct 22 2022, 10:04 PM.

Details

Summary

Resolves undefined references to vtable for clang::ASTConsumer,
PCHContainerOperations::PCHContainerOperations(), and
CodeGenOptions::CodeGenOptions().

Diff Detail

Event Timeline

jmciver created this revision.Oct 22 2022, 10:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2022, 10:04 PM
jmciver published this revision for review.Oct 22 2022, 10:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2022, 10:19 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Added GitHub issue 58553, which provides the full error message and repeatability information.

If this patch is accepted can someone please commit on my behalf?

  • User name: John McIver
  • User email: john.mciver.iii@gmail.com

LGTM! I'm sorry that you had to fix CMakeLists.txt. It really "worked on my machine", I was running these commands:

cmake --build build --target ClangSupportTests # build and link the binary
./build/tools/clang/unittests/Support/ClangSupportTests # run the binary
Izaron accepted this revision.Oct 23 2022, 2:51 AM
This revision is now accepted and ready to land.Oct 23 2022, 2:51 AM
This revision was automatically updated to reflect the committed changes.

Thanks @Izaron for taking the time to review and commit on my behalf!