diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-02-20 17:13:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-25 15:14:11 (GMT) |
commit | 933dd9164210a2f08dae6e1333ab7e5c30e3b012 (patch) | |
tree | f8800e67f9ea17b8228a6c1f491fbbef3f0b81e5 /Source/cmNinjaTargetGenerator.h | |
parent | 2c0a7bc770367e80ce1fc68ea6cb9c9543e854e4 (diff) | |
download | CMake-933dd9164210a2f08dae6e1333ab7e5c30e3b012.zip CMake-933dd9164210a2f08dae6e1333ab7e5c30e3b012.tar.gz CMake-933dd9164210a2f08dae6e1333ab7e5c30e3b012.tar.bz2 |
ninja: do not assume explicit preprocessing uses that output
In Fortran, this is OK, but for C++, compiling preprocessed source
generally results in poorer diagnostic messages and can also be
ill-formed anyways.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r-- | Source/cmNinjaTargetGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h index 2ffd256..6a42da0 100644 --- a/Source/cmNinjaTargetGenerator.h +++ b/Source/cmNinjaTargetGenerator.h @@ -65,6 +65,7 @@ protected: bool NeedExplicitPreprocessing(std::string const& lang) const; std::string LanguageDyndepRule(std::string const& lang) const; bool NeedDyndep(std::string const& lang) const; + bool UsePreprocessedSource(std::string const& lang) const; std::string OrderDependsTargetForTarget(); |