mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Cache taskg_gen.idx by absolute path
This commit is contained in:
parent
28846d6f34
commit
7874f8569f
@ -78,11 +78,12 @@ class task_gen(object):
|
||||
|
||||
# Provide a unique index per folder
|
||||
# This is part of a measure to prevent output file name collisions
|
||||
path = self.path.abspath()
|
||||
try:
|
||||
self.idx = self.bld.idx[self.path] = self.bld.idx.get(self.path, 0) + 1
|
||||
self.idx = self.bld.idx[path] = self.bld.idx.get(path, 0) + 1
|
||||
except AttributeError:
|
||||
self.bld.idx = {}
|
||||
self.idx = self.bld.idx[self.path] = 1
|
||||
self.idx = self.bld.idx[path] = 1
|
||||
|
||||
# Record the global task generator count
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user