Merge branch 'eclipse_unique_includes' into 'master'

eclipse: remove repeated entries in include paths for C/C++

See merge request ita1024/waf!2330
This commit is contained in:
ita1024 2021-09-04 20:37:35 +00:00
commit c1a2bf5f07
1 changed files with 4 additions and 2 deletions

View File

@ -133,8 +133,10 @@ class eclipse(Build.BuildContext):
path = p.path_from(self.srcnode)
if (path.startswith("/")):
if path not in cpppath:
cpppath.append(path)
else:
if path not in workspace_includes:
workspace_includes.append(path)
if is_cc and path not in source_dirs: