Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unbreak cpp_unittest rules for OSS buck2 builds
Summary: - Make gtest main stub it's own library to link in. This resolves issues with multiple definitions of main(), which folly sometimes triggers. If the test includes its own definition, it will be preferred, otherwise the linked version will be used - Turn gmock from an alias of test to it's own third party library. For macos they are packaged together, but on other systems they are published separately, and have separate pkgconfigs - Add implicit deps to gtest/gmock for cpp_unittest rules. Internally these dependencies are implicitly added, so this matches that behavior. Reviewed By: bigfootjon Differential Revision: D62543160 fbshipit-source-id: 3ed1ba5ec3b22928b11fefa86133acab13c16382
- Loading branch information