Make tags generated during component initialization stable.

The order in which the plugin initializers are executed is compiler
dependent. With this change, Tags will always be generated in
alphabetical ordering, not in compiler-dependent order.
This commit is contained in:
Johanna Amann 2016-08-11 17:06:56 -07:00
parent 2756dfe581
commit 65d977f278
13 changed files with 95 additions and 11 deletions

View file

@ -327,6 +327,12 @@ void Plugin::MetaHookPost(HookType hook, const HookArgumentList& args, HookArgum
{
}
void Plugin::InitializeComponents()
{
for ( component_list::const_iterator i = components.begin(); i != components.end(); i++ )
(*i)->Initialize();
}
void Plugin::Describe(ODesc* d) const
{
d->Add(config.name);