Project

General

Profile

Actions

Bug #4604

open

adjunct includes should use -isystem

Added by Keith Wesolowski over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Category:
tools - gate/build tools
Start date:
2014-02-16
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Because Studio does not accept -isystem nor does it have any real analogue to this gcc option, adjunct support was originally made to simply use -I everywhere. However, this is unnecessary and causes gcc to issue warnings (and often errors) because of bugs in third-party headers included by ON software. While it would be ideal to simply remove these dependencies or perhaps even fix the bugs, in the meantime we can easily work around this by introducing the ISYSTEM macro. This macro will expand to "-_cc=-I -_gcc=-isystem ". Note the trailing space; this will ensure that consumers doing something like

CPPFLAGS += $(ISYSTEM)$(ADJUNCT_PROTO)/path/to/shitty/headers

will not inadvertently omit the path if building with Studio. When Studio support is removed, this macro can simply be changed to "-isystem".

No data to display

Actions

Also available in: Atom PDF