[cmake-developers] dependency scanning speed

Brad King brad.king at kitware.com
Wed Sep 13 12:45:06 EDT 2006


Alexander Neundorf wrote:
> On Tuesday 12 September 2006 20:37, Alexander Neundorf wrote:
> ...
>> Here is more info:
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29037
> 
> Attached is a new version of the patch which uses clear() and operator+=(const 
> std::string&) instead of operator=(const std::string&) which seems to be the 
> best and least hackish way (see gcc bug report above).

Applied:

/cvsroot/CMake/CMake/Source/cmDependsC.cxx,v  <--  cmDependsC.cxx
new revision: 1.27; previous revision: 1.26
/cvsroot/CMake/CMake/Source/cmDependsC.h,v  <--  cmDependsC.h
new revision: 1.19; previous revision: 1.18

In order to compile on GCC 2.95 I had to change .clear() to ="" but
since that is C-string assignment it should be just as fast.  You may
want to test it again to be sure though.

-Brad



More information about the cmake-developers mailing list