summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaloyan Chehlarski <kaloyan.chehlarski@qt.io>2025-12-12 10:47:45 +0100
committerDimitrios Apostolou <jimis@qt.io>2025-12-12 13:52:21 +0000
commitd367bd5c172bb6a1b57376b657e7ccf561eede4b (patch)
treeb8e358f3f6fc467ea11de04fe8d4af0ed56bc4c8
parent031a10673ee369c84b2db2669fc147adf175a3be (diff)
[clang] Pass -fno-pch-timestamp to all clang targets134-based
PCH timestamps are not recommended when doing cached builds, and we do those on CI. Fixes: QTBUG-131650 Pick-to: 140-based 130-based 122-based Change-Id: Idad5392ecf032cb3d64ab27de346d9ba3a6b4f2a Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/698566 Reviewed-by: Dimitrios Apostolou <jimis@qt.io>
-rw-r--r--chromium/build/config/compiler/BUILD.gn5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn
index b6a9cfb2058..64e460ccc46 100644
--- a/chromium/build/config/compiler/BUILD.gn
+++ b/chromium/build/config/compiler/BUILD.gn
@@ -1172,6 +1172,11 @@ config("compiler") {
if (current_cpu == "arm64") {
defines += [ "__ARM_NEON__=1" ]
}
+
+ # Disable PCH timestamps to fix sccache breakage on CI
+ if (is_clang && is_qtwebengine) {
+ cflags += [ "-Xclang", "-fno-pch-timestamp" ]
+ }
}
# Don't allow unstable features to be enabled by `#![feature()]` without