Page MenuHomePhabricator

[clang] [unittest] Import LLVMTestingSupport if necessary

Authored by mgorny on Wed, Sep 11, 9:51 AM.



Add LLVMTestingSupport directory from LLVM_MAIN_SRC_DIR when building
clang stand-alone and LLVMTestingSupport library is not present. This
is needed to fix stand-alone builds without clang-tools-extra.

// The code is copied verbatim from clangd unittests

Diff Detail


Event Timeline

mgorny created this revision.Wed, Sep 11, 9:51 AM
gribozavr accepted this revision.Thu, Sep 12, 2:58 AM

Thanks for the fix! I'm not a fan of the complexity that standalone builds create, but if we are supporting them... oh well.

This revision is now accepted and ready to land.Thu, Sep 12, 2:58 AM

Thanks. Could you also ack the backport in

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptThu, Sep 12, 6:05 AM