From acb0420313d16ed6d158597a31016182f0b6286d Mon Sep 17 00:00:00 2001 From: fedepell Date: Tue, 2 May 2017 13:59:22 +0200 Subject: [PATCH] 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. --- waflib/extras/eclipse.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/waflib/extras/eclipse.py b/waflib/extras/eclipse.py index a9d9c99e..3656ea3e 100644 --- a/waflib/extras/eclipse.py +++ b/waflib/extras/eclipse.py @@ -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)