[clang-tools-extra] [ClangIncludeCleaner] Disable PCH (PR #184809)
Alexis Engelke via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 5 07:31:15 PST 2026
https://github.com/aengelke created https://github.com/llvm/llvm-project/pull/184809
Workaround a Clang bug w.r.t. instantiation of inline functions.
See: https://github.com/llvm/llvm-project/issues/184559.
>From acc9d6935b025e159d05fb89dfe397404d00f05e Mon Sep 17 00:00:00 2001
From: Alexis Engelke <engelke at in.tum.de>
Date: Thu, 5 Mar 2026 15:30:03 +0000
Subject: [PATCH] [ClangIncludeCleaner] Disable PCH
Workaround a Clang bug w.r.t. instantiation of inline functions.
See: https://github.com/llvm/llvm-project/issues/184559.
---
clang-tools-extra/include-cleaner/lib/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/clang-tools-extra/include-cleaner/lib/CMakeLists.txt b/clang-tools-extra/include-cleaner/lib/CMakeLists.txt
index 7ad5325f6026d..bb92f468027ca 100644
--- a/clang-tools-extra/include-cleaner/lib/CMakeLists.txt
+++ b/clang-tools-extra/include-cleaner/lib/CMakeLists.txt
@@ -12,6 +12,9 @@ add_clang_library(clangIncludeCleaner STATIC
DEPENDS
ClangDriverOptions
+
+ # Workaround for Clang bug: https://github.com/llvm/llvm-project/issues/184559
+ DISABLE_PCH_REUSE
)
clang_target_link_libraries(clangIncludeCleaner
More information about the cfe-commits
mailing list