This is an archive of the discontinued LLVM Phabricator instance.

gn build: Add build files for non-framework xpc clangd bits
ClosedPublic

Authored by thakis on Apr 2 2019, 5:56 AM.

Details

Summary

With this, check-clang-tools unit tests are complete, but the lit tests still don't run the one XPC test since this is still missing build files for the xpc framework.

Diff Detail

Event Timeline

thakis created this revision.Apr 2 2019, 5:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2019, 5:56 AM
mbonadei accepted this revision.Apr 2 2019, 7:17 AM

LGTM, just a couple of comments.

llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
17

Missing ":conversions" in deps.

llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/enable.gni
3

Is it ok to keep this = current_os == "mac", from the CL description I had the feeling that xpc tests were still disabled.

This revision is now accepted and ready to land.Apr 2 2019, 7:17 AM
thakis marked 2 inline comments as done.Apr 2 2019, 7:37 AM
thakis added inline comments.
llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
17

Thanks! Done.

llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/enable.gni
3

Yes, because clang-tools/extra/test/BUILD.gn still has CLANGD_BUILD_XPC_SUPPORT=0, so lit thinks xpc support isn't available and doesn't run the xpc lit tests. And the xpc unit tests pass, so they run after this change.

This revision was automatically updated to reflect the committed changes.