summaryrefslogtreecommitdiff
path: root/third-party
Commit message (Collapse)AuthorAgeFilesLines
* Remove an extra `//` in the IWYU pragma for gtest-matchers.hHaojian Wu2023-03-141-1/+1
| | | | Differential Revision: https://reviews.llvm.org/D146022
* [third-party] Respect LLVM_INSTALL_GTEST for llvm_gtest_mainMichał Górny2023-03-131-2/+6
| | | | | | | | | | 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. Differential Revision: https://reviews.llvm.org/D145946
* Add install targets for gtestTom Stellard2023-03-101-2/+18
| | | | | | | | | Stand-alone builds need an installed version of gtest in order to run the unittests. Reviewed By: mgorny, kwk Differential Revision: https://reviews.llvm.org/D137890
* [gtest] Use std::optional instead of llvm::Optional (NFC)Kazu Hirata2023-01-141-6/+6
| | | | | | | This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
* [llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and TestingSupportMichał Górny2022-11-241-0/+4
| | | | | | | | | | | | | | Exclude building googletest and LLVMTestingSupport libraries from the `all` target. If unittests are being built, these libraries will be built as a dependency anyway. If they are not being built, building them makes little sense as they are not installed or used otherwise. This will also make standalone builds of other projects easier, as it makes it possible to include these directories without having to cover them with additional conditions to prevent them from being built unconditionally. Differential Revision: https://reviews.llvm.org/D137035
* Move googletest to the third-party directoryTom Stellard2022-11-0964-0/+42657
| | | | | Rre-commit of 59052468c3e38cab15582cefbb5133fd4c2ffce5 with a typo fix in compiler-rt/CMakeLists.txt
* Revert "Move googletest to the third-party directory"Tom Stellard2022-11-0964-42657/+0
| | | | | | | This reverts commit 59052468c3e38cab15582cefbb5133fd4c2ffce5. It looks like this patch breaks the build when compiler-rt is passed to LLVM_ENABLE_PROJECTS instead of LLVM_ENABLE_RUNTIMES.
* Move googletest to the third-party directoryTom Stellard2022-11-0964-0/+42657
| | | | | | | | | | | | | This will help improve the project's layering, so that sub-projects that don't actually need any llvm code can still use googletest without having to reference code in the llvm directory. This will also make it easier to consolidate and simplify the standalone build configurations. Reviewed By: stellaraccident, lattner, probinson, phosek Differential Revision: https://reviews.llvm.org/D131919
* Revert "[cmake] Use `CMAKE_INSTALL_LIBDIR` too"John Ericson2022-08-181-3/+3
| | | | | | | This reverts commit f7a33090a91015836497c75f173775392ab0304d. Unfortunately this causes a number of failures that didn't show up in my local build.
* [cmake] Use `CMAKE_INSTALL_LIBDIR` tooJohn Ericson2022-08-181-3/+3
| | | | | | | | | | | | | | | | | | We held off on this before as `LLVM_LIBDIR_SUFFIX` conflicted with it. Now we return this. `LLVM_LIBDIR_SUFFIX` is kept as a deprecated way to set `CMAKE_INSTALL_LIBDIR`. The other `*_LIBDIR_SUFFIX` are just removed entirely. I imagine this is too potentially-breaking to make LLVM 15. That's fine. I have a more minimal version of this in the disto (NixOS) patches for LLVM 15 (like previous versions). This more expansive version I will test harder after the release is cut. Reviewed By: sebastian-ne, ldionne, #libc, #libc_abi Differential Revision: https://reviews.llvm.org/D130586
* Silence MSVC codecvt deprecation warningsAaron Ballman2022-08-151-0/+7
| | | | | This silences warnings about use of deprecated codecvt functionality after the switch to build with C++17.
* Ensure newlines at the end of files (NFC)Kazu Hirata2021-12-261-1/+1
|
* [benchmark] Delete BUILD filesMircea Trofin2021-12-146-187/+2
| | | | | | | Bazel support is through utils/bazel, and the BUILD files in `benchmark` just complicate downstream integrates for bazel based builds. Differential Revision: https://reviews.llvm.org/D115733
* [benchmark] Pull latest; disable -WerrorMircea Trofin2021-12-13100-1901/+3521
| | | | | | | | | | | | | | | | | Pulled the latest (b000672), which adds an option to disable -Werror, which caused issues previously (see for instance https://reviews.llvm.org/D112012) Applied https://github.com/google/benchmark/pull/1305 to unblock, as this issue is causing downstream buildbot failures. The only change is in llvm/CMakeLists.txt, where we set BENCHMARK_ENABLE_WERROR to have the same value as LLVM_ENABLE_WERROR. This patch also introduces a convenience script to pull benchmark from upstream. Differential Revision: https://reviews.llvm.org/D115684
* [benchmark] Reapply fix for -Wcovered-switch-default warningMartin Storsjö2021-12-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reapplies a fix from 948ce4e6edec6ad3cdf1911fc3e8e9569140d4ff, whichn't originally submitted upstream. I has now been merged upstream though, in https://github.com/google/benchmark/pull/1302. When benchmarks were unified in 5dda2efde574d3a200d04c371f561a77ee9f4aff, it lost this change, but it also lost another local modification, where benchmark's CMakeLists.txt was modified to comment out adding -Werror. (This change was part of the original import in 0addd170ab0880941fa4089c2717f3f3a0e4e25a.) As the benchmark library is built automatically by default, when building all of LLVM (contrary to the copy in libcxx, which wasn't built by default), building it with -Werror by default is very brittle. This fixes building LLVM with MinGW. (It wasn't broken in MSVC mode, as the benchmark library doesn't add -Werror or anything equivalent in MSVC mode, and it's unclear if this warning is enabled in that mode at all.) Differential Revision: https://reviews.llvm.org/D115434
* Re-Reland "[benchmarks] Move libcxx's fork of google/benchmark and llvm/utils'"Mircea Trofin2021-12-07139-0/+21243
| | | | | | | | | This reverts commit b2fbd45d2395f1f6ef39db72b7156724fc101e40. D114922 fixed the reason of the 2nd revert. This patch also re-applies 39e9f5d3685f3cfca0df072928ad96d973704dff. Differential Revision: https://reviews.llvm.org/D112012
* Revert "Reland "[benchmarks] Move libcxx's fork of google/benchmark and ↵Mircea Trofin2021-11-16139-21243/+0
| | | | | | | | | llvm/utils'""" This reverts commit 1ee32055ea1dd4db70d1939cbd4f5105c2dce160. We hit additional bot failures; in particular, Fuchsia's seems to be related to how CMakeLists are ingested, see https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8830380874445931681/overview
* Reland "[benchmarks] Move libcxx's fork of google/benchmark and llvm/utils'""Mircea Trofin2021-11-16139-0/+21243
| | | | | | | | | | | | This reverts commit e7568b68da8a216dc22cdc1c6d8903c94096c846 and relands c6f7b720ecfa6db40c648eb05e319f8a817110e9. The culprit was: missed that libc also had a dependency on one of the copies of `google-benchmark` Also opportunistically fixed indentation from prev. change. Differential Revision: https://reviews.llvm.org/D112012
* Revert "[benchmarks] Move libcxx's fork of google/benchmark and llvm/utils'"Mircea Trofin2021-11-16139-21243/+0
| | | | | | | | | This reverts commit c6f7b720ecfa6db40c648eb05e319f8a817110e9. Some buildbots are failing, will investigate and reland. Example: https://lab.llvm.org/buildbot#builders/138/builds/14067 https://lab.llvm.org/buildbot#builders/73/builds/20159
* [benchmarks] Move libcxx's fork of google/benchmark and llvm/utils'Mircea Trofin2021-11-16139-0/+21243
under third-party This change: - moves the libcxx copy of `google/benchmark` to `third-party/benchmkark` - points the 2 uses of the library (libcxx and llvm/utils) to this copy We picked the licxx copy because it is the most up to date. Differential Revision: https://reviews.llvm.org/D112012