Browse Source

Merge branch 'eclipse_unique_includes' into 'master'

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

See merge request ita1024/waf!2330
master
ita1024 2 months ago
parent
commit
c1a2bf5f07
  1. 6
      waflib/extras/eclipse.py

6
waflib/extras/eclipse.py

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

Loading…
Cancel
Save