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:
parent
543cc204a6
commit
ddd49b571b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user