qt5base-lts/qmake/generators/win32
Orgad Shaneh af1a179cc8 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 30331afda1.

[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>
2018-01-08 15:02:21 +00:00
..
mingw_make.cpp qmake: Handle QMAKE_LINK_OBJECT_MAX being unset for static libraries 2018-01-04 22:41:53 +00:00
mingw_make.h Merge remote-tracking branch 'origin/5.6' into dev 2016-01-26 16:27:28 +01:00
msbuild_objectmodel.cpp qmake: Delete unused variables in MSBuild object model 2017-06-12 10:47:13 +00:00
msbuild_objectmodel.h Merge remote-tracking branch 'origin/5.8' into dev 2017-01-25 20:06:06 +01:00
msvc_nmake.cpp qmake: Introduce precompile_header_c for MSVC 2018-01-08 15:02:21 +00:00
msvc_nmake.h qmake: Introduce precompile_header_c for MSVC 2018-01-08 15:02:21 +00:00
msvc_objectmodel.cpp Merge remote-tracking branch 'origin/5.9' into dev 2017-06-19 16:12:34 +02:00
msvc_objectmodel.h Remove support for WinRT 8.1 and Windows Phone 8.1 2017-01-18 12:38:56 +00:00
msvc_vcproj.cpp Merge remote-tracking branch 'origin/5.9' into dev 2017-08-02 22:52:32 +02:00
msvc_vcproj.h Fix unnecessary regeneration of mocables in VS projects 2016-12-21 16:35:22 +00:00
msvc_vcxproj.cpp Updated license headers 2016-01-21 18:55:18 +00:00
msvc_vcxproj.h Updated license headers 2016-01-21 18:55:18 +00:00
registry_p.h move "shared" registry reading code into qmake 2016-12-23 13:45:50 +00:00
registry.cpp move "shared" registry reading code into qmake 2016-12-23 13:45:50 +00:00
winmakefile.cpp make mkspecs not mess up library and include search paths 2017-05-31 12:57:09 +00:00
winmakefile.h Updated license headers 2016-01-21 18:55:18 +00:00