summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorNicolas van Kempen <nvankemp@gmail.com>2023-03-23 08:02:50 (GMT)
committerNicolas van Kempen <nvankemp@gmail.com>2023-03-28 21:53:18 (GMT)
commit426f3295f61eaf2feb58c7e4b9ebe838b21cf453 (patch)
treebe9eea63422ee99e65745105444eba9f04552846 /Source/cmGlobalNinjaGenerator.h
parent841c1844e13ca908b0c6e485d25968d4b77544ac (diff)
downloadCMake-426f3295f61eaf2feb58c7e4b9ebe838b21cf453.zip
CMake-426f3295f61eaf2feb58c7e4b9ebe838b21cf453.tar.gz
CMake-426f3295f61eaf2feb58c7e4b9ebe838b21cf453.tar.bz2
Ninja: Use more efficient data structures to collect outputs
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 12c6698..0af8cde 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -351,15 +351,10 @@ public:
const std::string& fileConfig,
cmNinjaTargetDepends depends);
void AppendTargetDependsClosure(cmGeneratorTarget const* target,
- cmNinjaDeps& outputs,
+ std::unordered_set<std::string>& outputs,
const std::string& config,
const std::string& fileConfig,
- bool genexOutput);
- void AppendTargetDependsClosure(cmGeneratorTarget const* target,
- cmNinjaOuts& outputs,
- const std::string& config,
- const std::string& fileConfig,
- bool genexOutput, bool omit_self);
+ bool genexOutput, bool omit_self = true);
void AppendDirectoryForConfig(const std::string& prefix,
const std::string& config,
@@ -617,7 +612,8 @@ private:
bool GenexOutput;
};
- std::map<TargetDependsClosureKey, cmNinjaOuts> TargetDependsClosures;
+ std::map<TargetDependsClosureKey, std::unordered_set<std::string>>
+ TargetDependsClosures;
TargetAliasMap TargetAliases;