Skip to content

Commit

Permalink
qmake bugfix ccache Clang -fno-pch-timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 20, 2024
1 parent a1cf554 commit ce51027
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qmake/common/unixconf.pri
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce51027

Please sign in to comment.