mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-20 09:59:53 -06:00
16 lines
481 B
Plaintext
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)
|