diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-07-28 22:12:23 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-07-28 22:12:23 (GMT) |
commit | 2ba1c0ab062ede8b85775a97accc01da0e7fb040 (patch) | |
tree | 7c06a436fbf4658df6c750b61cf27da2c477858a /Source/cmLocalUnixMakefileGenerator.cxx | |
parent | 3d27a6a39114aa97422fb3a431262a35a6dc113d (diff) | |
download | CMake-2ba1c0ab062ede8b85775a97accc01da0e7fb040.zip CMake-2ba1c0ab062ede8b85775a97accc01da0e7fb040.tar.gz CMake-2ba1c0ab062ede8b85775a97accc01da0e7fb040.tar.bz2 |
ENH: performance fixes for network depends
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index ffcd929..157e218 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -1904,8 +1904,11 @@ void cmLocalUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout) (*source)->GetDepends().begin(); dep != (*source)->GetDepends().end(); ++dep) { - std::string dependfile = - cmSystemTools::ConvertToOutputPath(cmSystemTools::CollapseFullPath(dep->c_str()).c_str()); + // do not call CollapseFullPath on dep here, because it already + // has been done because m_FullPath on cmDependInformation + // always is it called. If it is called here, network builds are + // very slow because of the number of stats + std::string dependfile = cmSystemTools::ConvertToOutputPath(dep->c_str()); // use the lower path function to create uniqe names std::string lowerpath = this->LowerCasePath(dependfile.c_str()); if(emittedLowerPath.insert(lowerpath).second) |