This is an archive of the discontinued LLVM Phabricator instance.

[third-party] Respect LLVM_INSTALL_GTEST for llvm_gtest_main
ClosedPublic

Authored by mgorny on Mar 13 2023, 8:40 AM.

Details

Summary

Pass BUILDTREE_ONLY to llvm_gtest_main only if LLVM_INSTALL_GTEST
is not set. This fixes 0807986303f5d498cee32d42c242940d00617ad9.
Otherwise, llvm_gtest_main cannot be used
in LLVM_DISTRIBUTION_COMPONENTS, effectively making it impossible
to install llvm_gtest correctly.

Diff Detail

Event Timeline

mgorny created this revision.Mar 13 2023, 8:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 8:40 AM
mgorny requested review of this revision.Mar 13 2023, 8:40 AM
tstellar accepted this revision.Mar 13 2023, 8:43 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Mar 13 2023, 8:43 AM
This revision was landed with ongoing or failed builds.Mar 13 2023, 9:12 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 9:12 AM