2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-05 18:12:09 +01:00

eclipse: absolute include paths must be added without the workspace prefix or they will result in an incorrect path. treat them correctly as system paths.

This commit is contained in:
fedepell 2017-05-02 13:59:22 +02:00 committed by ita1024
parent 543cc204a6
commit ddd49b571b

View File

@ -78,7 +78,11 @@ class eclipse(Build.BuildContext):
incnodes = tg.to_incnodes(tg.to_list(getattr(tg, 'includes', [])) + tg.env['INCLUDES'])
for p in incnodes:
path = p.path_from(self.srcnode)
workspace_includes.append(path)
if (path.startswith("/")):
cpppath.append(path)
else:
workspace_includes.append(path)
if is_cc and path not in source_dirs:
source_dirs.append(path)