This is an archive of the discontinued LLVM Phabricator instance.

[Polly] Reuse LLVM's build rules for gtest/gmock
ClosedPublic

Authored by mgorny on Aug 5 2020, 1:18 AM.

Details

Summary

Reuse LLVM's CMakeLists.txt for gtest/gmock instead of reinventing
them in Polly. This fixes a lot of linking errors due to not linking
LLVMSupport in for me.

Diff Detail

Event Timeline

mgorny created this revision.Aug 5 2020, 1:18 AM
mgorny requested review of this revision.Aug 5 2020, 1:18 AM
Meinersbur accepted this revision.Aug 9 2020, 3:45 AM
Meinersbur added a subscriber: Meinersbur.

LGTM. Thanks.

(I think this code was once copied from clang; clang's CMakeLists.txt now also reuses LLVM's gtest CMakeLists.txt)

This revision is now accepted and ready to land.Aug 9 2020, 3:45 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2020, 3:54 AM