2
0
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:
Thomas Nagy 2015-11-08 11:48:53 +01:00
parent 65388a22c5
commit 2fb1e0cfb2
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -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: