Issue 1173 - resolve symlinks to the build directory

This commit is contained in:
Thomas Nagy 2014-09-20 13:46:11 +02:00
parent 7f2cc4ef42
commit 74b5ffc153
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ class ConfigurationContext(Context.Context):
if not out:
out = Options.lockfile.replace('.lock-waf_%s_' % sys.platform, '').replace('.lock-waf', '')
# someone can be messing with symlinks
out = os.path.realpath(out)
self.bldnode = (os.path.isabs(out) and self.root or self.path).make_node(out)
self.bldnode.mkdir()