diff options
author | Brad King <brad.king@kitware.com> | 2016-02-10 19:08:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-11 13:53:37 (GMT) |
commit | 59ade844ef01f0c8a4db3a5593f79210edcf6cbc (patch) | |
tree | c3512a64d5d056f5f51ffeac253e9528d92a5ace /Source/cmLocalNinjaGenerator.h | |
parent | a5a5a6857241c21d306661d723b749839f4c6e1a (diff) | |
download | CMake-59ade844ef01f0c8a4db3a5593f79210edcf6cbc.zip CMake-59ade844ef01f0c8a4db3a5593f79210edcf6cbc.tar.gz CMake-59ade844ef01f0c8a4db3a5593f79210edcf6cbc.tar.bz2 |
Ninja: Fix non-determinism in generated build statement order (#15968)
Generate custom command build statements in the order we encounter
source files specifying them. Do not depend on pointer values of
internally allocated structures for ordering.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.h')
-rw-r--r-- | Source/cmLocalNinjaGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalNinjaGenerator.h b/Source/cmLocalNinjaGenerator.h index b6987ef..5e1d6f2 100644 --- a/Source/cmLocalNinjaGenerator.h +++ b/Source/cmLocalNinjaGenerator.h @@ -106,6 +106,7 @@ private: typedef std::map<cmCustomCommand const*, std::set<cmGeneratorTarget*> > CustomCommandTargetMap; CustomCommandTargetMap CustomCommandTargets; + std::vector<cmCustomCommand const*> CustomCommands; }; #endif // ! cmLocalNinjaGenerator_h |