Bug 714365 - DictionaryHelpers.cpp gets rebuilt on every build. r=ted

This commit is contained in:
Nathan Froyd 2012-01-23 07:55:21 -08:00
parent ba66231d2a
commit e0439c9672

View File

@ -82,9 +82,10 @@ def findIDL(includePath, interfaceFileName):
% (interfaceFileName, includePath))
def loadIDL(parser, includePath, filename):
if not filename in make_dependencies:
make_dependencies.append(filename)
idl = p.parse(open(findIDL(includePath, filename)).read(), filename)
idlFile = findIDL(includePath, filename)
if not idlFile in make_dependencies:
make_dependencies.append(idlFile)
idl = p.parse(open(idlFile).read(), idlFile)
idl.resolve(includePath, p)
return idl