diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-12 05:00:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-13 15:20:56 (GMT) |
commit | 26762e16818749beeaa65149035e17a24cae5b1f (patch) | |
tree | f178991ab79e03b150abee0741ba35fcf0a28f3b /Source/cmNinjaTargetGenerator.h | |
parent | 5104f55d3f9cf2f9b2537364d1b9a5c86d2f790b (diff) | |
download | CMake-26762e16818749beeaa65149035e17a24cae5b1f.zip CMake-26762e16818749beeaa65149035e17a24cae5b1f.tar.gz CMake-26762e16818749beeaa65149035e17a24cae5b1f.tar.bz2 |
Ninja: Cache target-level flags
Instead of figuring out target flags per-source file, cache the flags
that are being used. This results in a *much* faster generate time for
Ninja.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r-- | Source/cmNinjaTargetGenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h index 2ce1ed7..43f2279 100644 --- a/Source/cmNinjaTargetGenerator.h +++ b/Source/cmNinjaTargetGenerator.h @@ -154,6 +154,9 @@ private: /// List of object files for this target. cmNinjaDeps Objects; + typedef std::map<std::string, std::string> LanguageFlagMap; + LanguageFlagMap LanguageFlags; + // The windows module definition source file (.def), if any. std::string ModuleDefinitionFile; }; |