summaryrefslogtreecommitdiffstats
path: root/qmake/generators/win32/msvc_nmake.h
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-01-02 19:07:03 +0200
committerOrgad Shaneh <orgads@gmail.com>2018-01-08 15:02:21 +0000
commitaf1a179cc8b599523ca858b1b9f55c93a734d047 (patch)
tree4639ebfd7ec5e43d76beff704fa18a18d1ff428f /qmake/generators/win32/msvc_nmake.h
parent3e58f2b090661aab7302132cb2da661c8e227bc2 (diff)
qmake: Introduce precompile_header_c for MSVC
MSVC requires that the C PCH file is compiled (as an object) and linked if any C file is found, and the same for C++. Most qmake projects are C++. If a C++ project has a precompiled header, it is typically of C++ type, and cannot be compiled as C (for example, it contains or includes classes). Since there is no easy way to conditionally build the C PCH file only if C files are found in the project (as done for g++), we need a setting that is disabled by default. This amends 30331afda118. [ChangeLog][Tools][qmake] Introduced precompile_header_c CONFIG option for MSVC to enable precompiled header for C sources. Task-number: QTBUG-65103 Change-Id: Id9688a35ee7d9b5e4f5a846b81986cb674bc5f4e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'qmake/generators/win32/msvc_nmake.h')
-rw-r--r--qmake/generators/win32/msvc_nmake.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/win32/msvc_nmake.h b/qmake/generators/win32/msvc_nmake.h
index 4b0935bb66..67b609d0a6 100644
--- a/qmake/generators/win32/msvc_nmake.h
+++ b/qmake/generators/win32/msvc_nmake.h
@@ -53,7 +53,7 @@ protected:
QString var(const ProKey &value) const;
QString precompH, precompObj, precompPch;
QString precompObjC, precompPchC;
- bool usePCH;
+ bool usePCH, usePCHC;
public:
NmakeMakefileGenerator();