From ce51027e42b33ceec608b5cbd5ea7c0a65ecabc0 Mon Sep 17 00:00:00 2001 From: silverqx Date: Thu, 20 Jun 2024 15:01:15 +0200 Subject: [PATCH] qmake bugfix ccache Clang -fno-pch-timestamp --- qmake/common/unixconf.pri | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qmake/common/unixconf.pri b/qmake/common/unixconf.pri index ae6edbf50..1f76d324d 100644 --- a/qmake/common/unixconf.pri +++ b/qmake/common/unixconf.pri @@ -31,10 +31,8 @@ clang { # Has the potential to catch weird code QMAKE_CXXFLAGS_WARN_ON *= -Wdeprecated - # The -fno-pch-timestamp option is needed for Clang with ccache, this option will be - # used even when the ccache isn't used because is very hard to make 100% logic that - # will detect the ccache with qmake but it doesn't interfere with anything so it's ok - precompile_header { + # The -fno-pch-timestamp option is needed for Clang with ccache + ccache:precompile_header { # qmake on MSYS2 ignores the QMAKE_CXXFLAGS_PRECOMPILE variable mingw: \ QMAKE_CXXFLAGS = -Xclang -fno-pch-timestamp $$QMAKE_CXXFLAGS