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