Reduce relative path lengths to work around Visual Studio limitations #2272

This commit is contained in:
Thomas Nagy 2019-12-18 07:27:03 +01:00
parent 07d3203e0b
commit 13d9c8566c
1 changed files with 5 additions and 1 deletions

View File

@ -121,7 +121,11 @@ def apply_incpaths(self):
lst = self.to_incnodes(self.to_list(getattr(self, 'includes', [])) + self.env.INCLUDES)
self.includes_nodes = lst
cwd = self.get_cwd()
self.env.INCPATHS = [x.path_from(cwd) for x in lst]
if Utils.is_win32:
# Visual Studio limitations
self.env.INCPATHS = [x.path_from(cwd) if x.is_child_of(self.bld.srcnode) else x.abspath() for x in lst]
else:
self.env.INCPATHS = [x.path_from(cwd) for x in lst]
class link_task(Task.Task):
"""