2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +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 Thomas Nagy
parent 25e01a2077
commit acb0420313

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)