diff options
author | Reid Kleckner <rnk@google.com> | 2025-04-30 16:40:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 16:40:21 -0700 |
commit | afd738cd9016ddef4e26b309770ba35fd017a178 (patch) | |
tree | c8b560a1885fbfb1d93d32703eb9d291fb459dba /clang/unittests/Basic | |
parent | 7d05f67a7377ad67e7eb15e0f8f7cf1f537b5afa (diff) | |
download | llvm-afd738cd9016ddef4e26b309770ba35fd017a178.zip llvm-afd738cd9016ddef4e26b309770ba35fd017a178.tar.gz llvm-afd738cd9016ddef4e26b309770ba35fd017a178.tar.bz2 |
[clang] Shard out some small gtest binaries (#138021)
@nico mentioned that FormatTests and BasicTests are small binaries with
few dependencies, so keeping them separate is nice. I broke them out as
distinct test binaries, and they are still pretty small:
$ find tools/clang/unittests/ -type f -name '*Tests' | xargs du -cksh |
sort -nr
708M total
276M tools/clang/unittests/AllClangUnitTests
244M tools/clang/unittests/Interpreter/ClangReplInterpreterTests
167M
tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
13M tools/clang/unittests/Format/FormatTests
6.9M tools/clang/unittests/Basic/BasicTests
1.1M tools/clang/unittests/libclang/CrashTests/libclangCrashTests
I also broke out libclangCrashTests and re-enabled the failing test to
resolve llvm#137855.
Diffstat (limited to 'clang/unittests/Basic')
-rw-r--r-- | clang/unittests/Basic/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Basic/CMakeLists.txt b/clang/unittests/Basic/CMakeLists.txt index e818bd3..b0e0a97 100644 --- a/clang/unittests/Basic/CMakeLists.txt +++ b/clang/unittests/Basic/CMakeLists.txt @@ -1,4 +1,6 @@ -add_clang_unittest(BasicTests +# Basic tests have few LLVM and Clang dependencies, so linking it as a +# distinct target enables faster iteration times at low cost. +add_distinct_clang_unittest(BasicTests CharInfoTest.cpp DarwinSDKInfoTest.cpp DiagnosticTest.cpp |