Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"."This reverts commit 7cdda6b8ce49ae3c90c068cff4dc355bba5d77f2.Differential Revision: https://reviews.llvm.org/D121020
Revert "[cmake] Prefix gtest and gtest_main with "llvm_"."lldb buildbot failure. will investigate and roll forward.This reverts commit 9f37775472b45986b0ecce5243bd6ce119e5bd69.
[cmake] Prefix gtest and gtest_main with "llvm_".The upstream project ships CMake rules for building vanilla gtest/gmock which conflict with the names chosen by LLVM. Since LLVM's build rules here
[cmake] Prefix gtest and gtest_main with "llvm_".The upstream project ships CMake rules for building vanilla gtest/gmock which conflict with the names chosen by LLVM. Since LLVM's build rules here are quite specific to LLVM, prefixing them to avoid collision is the right thing (i.e. there does not appear to be a path to letting someone *replace* LLVM's googletest with one they bring, so co-existence should be the goal).This allows LLVM to be included with testing enabled within projects that themselves have a dependency on an official gtest release.Reviewed By: mehdi_aminiDifferential Revision: https://reviews.llvm.org/D120789
show more ...
[Support] Initialize common options in `getRegisteredOptions`This allows users accessing options in libSupport before invoking`cl::ParseCommandLineOptions`, and also matches the behavior beforeD1
[Support] Initialize common options in `getRegisteredOptions`This allows users accessing options in libSupport before invoking`cl::ParseCommandLineOptions`, and also matches the behavior beforeD105959.Reviewed By: MaskRayDifferential Revision: https://reviews.llvm.org/D106334