Files
TinyORM/qmake/features/tiny_ccache.prf
silverqx a887dd4780 fixtypo
2022-07-13 23:06:13 +02:00

16 lines
481 B
Plaintext

# Target the g++, clang++, msvc, and clang-cl with msvc compilers
!win32: return()
# https://github.com/ccache/ccache/issues/1040
QMAKE_CFLAGS ~= s/-Zi/-Z7
QMAKE_CXXFLAGS ~= s/-Zi/-Z7
# MSYS2 g++, clang++ work well with the precompiled headers but the msvc doesn't
win32-msvc|win32-clang-msvc: \
CONFIG -= precompile_header
ccache_prefix = ccache
for(tool, $$list(QMAKE_CC QMAKE_CXX QMAKE_LINK QMAKE_LINK_SHLIB QMAKE_LINK_C)): \
$$tool = $$ccache_prefix $$eval($$tool)