Revision: 491
Author: allenb
Date: 2006-08-29 07:07:44 -0700 (Tue, 29 Aug 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=491&view=rev
Log Message:
-----------
Add support for passing list of dependent header files to builder. This list of files is used to compute the cache signature (in
addition to using the normal list of header files passed in to parse).
This change gives the user the ability to make the caches safer in the presence of changes if they want to.
Modified Paths:
--------------
pyplusplus_dev/contrib/goodies/goodie_perf_overrides.py
Modified: pyplusplus_dev/contrib/goodies/goodie_perf_overrides.py
===================================================================
--- pyplusplus_dev/contrib/goodies/goodie_perf_overrides.py 2006-08-29 13:27:12 UTC (rev 490)
+++ pyplusplus_dev/contrib/goodies/goodie_perf_overrides.py 2006-08-29 14:07:44 UTC (rev 491)
@@ -79,8 +79,12 @@
, optimize_queries=True
, ignore_gccxml_output=False
, indexing_suite_version=1
- , cflags=""):
- """ See standard method. """
+ , cflags=""
+ , dependent_headers=[]):
+ """ See standard method.
+ dependent_headers: A list of header files (full paths) that this module depends
+ upon and should be made part of the cache signature.
+ """
object.__init__( self )
self.logger = _logging_.loggers.module_builder
gccxml_config = parser.config_t(
@@ -110,8 +114,10 @@
if cache:
sig = md5.new()
sig.update(configuration_signature(gccxml_config))
- for f in files:
+ for f in self._module_builder_t__parsed_files: # files:
sig.update(file_signature(f))
+ for f in dependent_headers:
+ sig.update(file_signature(f))
cur_digest = sig.hexdigest()
if os.path.exists(cache):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|