mirror of https://gitlab.com/ita1024/waf.git
Reduce relative path lengths to work around Visual Studio limitations #2272
This commit is contained in:
parent
07d3203e0b
commit
13d9c8566c
|
@ -121,6 +121,10 @@ 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()
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue