summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-07-28 22:12:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-07-28 22:12:23 (GMT)
commit2ba1c0ab062ede8b85775a97accc01da0e7fb040 (patch)
tree7c06a436fbf4658df6c750b61cf27da2c477858a /Source/cmLocalUnixMakefileGenerator.cxx
parent3d27a6a39114aa97422fb3a431262a35a6dc113d (diff)
downloadCMake-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.cxx7
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)