[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Order of User-defined and Built-in includes/macros( was:How to get CDT parser to search -I includes before defaultincludes)
|
Yup, a quick gcc -v shows the user includes come first.
Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, Tools PMC member
http://cdtdoug.blogspot.com
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On
Behalf Of Lott, Jeremiah
Sent: Wednesday, May 24, 2006 10:41 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] Order of User-defined and Built-in
includes/macros(was:How to get CDT parser to search -I includes before
defaultincludes)
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On Behalf Of Sennikovsky, Mikhail
> Sent: Wednesday, May 24, 2006 10:07 AM
> To: CDT General developers list.
> Subject: [cdt-dev] Order of User-defined and Built-in includes/macros
> (was:How to get CDT parser to search -I includes before default
> includes)
>
> Hi all,
>
> It seems reasonable for me to prepend user-defined includes and macros
> instead of appending them as done currently in MBS, since I
> assume this
> is really the most common behavior for most tools including gcc.
>
> The reasonable order seems to be:
>
> 1. User values defined via options
> 2. User values defined via environment
> 3. Tool built-ins
>
> Does anyone have any concerns or disagreements about the above order?
>
> Regards,
> Mikhail
I'm pretty sure that gcc always searches the user-specified -I
directories before any built-in ones. However, I'm also pretty sure
that the behavior is compiler dependent (see Leo's post), and therefore
no single assumption by MBS will be correct for all compilers. Also
this seems like a familiar topic? Maybe this was discussed on the list
in the past sometime.
Jeremiah Lott
TimeSys Corporation
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev