qt5base-lts/qmake/generators
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
..
mac qmake: set COPY_PHASE_STRIP to NO in Xcode generator 2018-01-05 23:26:50 +00:00
unix Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-07 14:47:19 +01:00
win32 qmake: Introduce precompile_header_c for MSVC 2018-01-08 15:02:21 +00:00
makefile.cpp Move a QRegExp out of a deeply nested loop 2017-11-23 05:27:33 +00:00
makefile.h don't pass qmake configure arguments to sub-projects 2017-01-06 20:09:18 +00:00
makefiledeps.cpp Adapt qmake's raw-string parser to avoid confusion by macros 2017-08-24 14:27:50 +00:00
makefiledeps.h qmake: replace a uint:1 with a bool 2016-08-15 22:16:09 +00:00
metamakefile.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-29 17:55:20 +02:00
metamakefile.h Updated license headers 2016-01-21 18:55:18 +00:00
projectgenerator.cpp Pass the absolute path with the file when finding files 2017-06-19 08:39:40 +00:00
projectgenerator.h Updated license headers 2016-01-21 18:55:18 +00:00
xmloutput.cpp Merge remote-tracking branch 'origin/5.6' into dev 2016-02-11 08:25:04 +01:00
xmloutput.h Updated license headers 2016-01-21 18:55:18 +00:00