summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-10 19:08:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-11 13:53:37 (GMT)
commit59ade844ef01f0c8a4db3a5593f79210edcf6cbc (patch)
treec3512a64d5d056f5f51ffeac253e9528d92a5ace /Source/cmLocalNinjaGenerator.h
parenta5a5a6857241c21d306661d723b749839f4c6e1a (diff)
downloadCMake-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.h1
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