Community
Participate
Working Groups
CDT GCC build output parser does not understand -imacros and -isystem compiler flags
I separated -imacros issue into bug 412897 and fixed it. That was a simple typing error.
It this a duplicate of bug 293216?
(In reply to comment #2) > It this a duplicate of bug 293216? This bug is about a new LSP build output parser. Bug 293216 started about older scanner discovery parser, and there is even a patch for it. Perhaps bug 293216 could be closed when this one is fixed but for now I would prefer to keep them separate.
In order to workaround this (-isystem is used a lot in android source makefiles) I have written a small plugin that contributes a Parser copied from GCC with the addition of -isystem. Of course this is not really right, as these paths are treated the same way as -I includes. A correct handling will require some deeper changes I take. Would it make sense that I spend time in trying to implement a fix for the GCC parser? Or is a solution already in the making?
As far as I know nobody is working on this currently. I see there is a fair number of people asking for this. If you want to implement it I can review your patches. You can start with a patch that treats -isystem as -I, it would be useful already. Please, submit patches to Gerrit.
Can someone please review the patch in bug 293216 I provided under the light of the new discovery infrastructure. I can't completely remember what I did there and also I do not know much about the implementation of CDT, but maybe I already fixed the new discovery?
(In reply to comment #6) > Can someone please review the patch in bug 293216 I provided under the light of > the new discovery infrastructure. I can't completely remember what I did there > and also I do not know much about the implementation of CDT, but maybe I already > fixed the new discovery? That patch can not possibly work with new scanner discovery, that's what I meant in comment 3. In addition, as mentioned in comment 4, -isystem is more involved than -I.
Hi, I have uploaded my change, which -isystem as -I, to gerrit: https://git.eclipse.org/r/#/c/15584/ cheers Fabrizio
I merged your patch to master, thank you. Again, as you mentioned in comment 4 a correct handling requires some deeper changes - to reorder include paths.
This bug was assigned and targeted at a now released milestone. As that milestone has now passed, the milestone field has been cleared. If this bug has been fixed, please set the milestone to the version it was fixed in and marked the bug as resolved.