mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Let gccdeps work when a custom cwd is provided through bld.cwdx
This commit is contained in:
parent
65388a22c5
commit
2fb1e0cfb2
@ -121,7 +121,8 @@ def post_run(self):
|
||||
if os.path.isabs(x):
|
||||
node = path_to_node(bld.root, x, cached_nodes)
|
||||
else:
|
||||
path = bld.bldnode
|
||||
# TODO waf 1.9 - single cwd value
|
||||
path = getattr(bld, 'cwdx', bld.bldnode)
|
||||
# when calling find_resource, make sure the path does not contain '..'
|
||||
x = [k for k in Utils.split_path(x) if k and k != '.']
|
||||
while '..' in x:
|
||||
|
Loading…
Reference in New Issue
Block a user