[eclipse-poky] eclipse-poky using host gcc/g++ for indexing

Lewis, ScottX scottx.lewis at intel.com
Thu Feb 1 15:53:48 PST 2018


Hi Chin Huat,

CDT has an extension point:  org.eclipse.cdt.core.CIndexer that is documented:

This extension point is used to contribute a new Indexer to the CDT. This indexer can choose to receive event notification from the index manager.

Would this of any use for hooking the cdt indexer?

Also potentially relevant:  org.eclipse.cdt.core.CIndex extension point.

If it is, here [1] are all the cdt extension point docs include CIndexer and CIndex.

Scott

[1] https://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.cdt.doc.isv%2Freference%2Fextension-points%2Findex.html

-----Original Message-----
From: eclipse-poky-bounces at yoctoproject.org [mailto:eclipse-poky-bounces at yoctoproject.org] On Behalf Of Ang, Chin Huat
Sent: Thursday, February 1, 2018 3:28 PM
To: eclipse-poky at yoctoproject.org
Subject: [eclipse-poky] eclipse-poky using host gcc/g++ for indexing

It appears that when eclipse-cdt tries to look for header files it failed to pick up gcc from SDK and instead uses host distro's gcc, thus showing header files from the host instead of SDK.

I've experimented manually workaround the indexer settings by changing the gcc dump spec command from ${COMMAND} to ${CC} as the indexer appears to support using environment variables as fallback, and I see the SDK header files being discovered correctly. 

Next I will look into how to programmatically update C/C++ indexer command by language setting provider API in YoctoSDK*ProjectNature, although I am slightly concerned about customizing the default indexer command.  

https://bugzilla.yoctoproject.org/show_bug.cgi?id=12431

--Chin Huat
_______________________________________________
eclipse-poky mailing list
eclipse-poky at yoctoproject.org
https://lists.yoctoproject.org/listinfo/eclipse-poky



More information about the eclipse-yocto mailing list