This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Default include directories
- From: Miguel Guedes <miguel dot a dot guedes at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 29 Mar 2013 13:11:57 +0000
- Subject: Re: Default include directories
- References: <kj1nvg$42h$1 at ger dot gmane dot org> <CAKOQZ8yXLwwj4o9xspENfDpxmfJ_3c04EhOKoUFMXOss_UNLqA at mail dot gmail dot com>
On Thu, 2013-03-28 at 10:16 -0700, Ian Lance Taylor wrote:
> They are constructed at the time that GCC is compiled, based on the
> configure option. They are also affected by any -B option, the
> INCLUDE_PATH environment variable, options like -nostdinc, and
> obviously options like -I, -iquote, --sysroot, etc. So really
> computing the set of directories is pretty hard, and I would recommend
> invoking gcc -v and parsing the output.
Ah, makes perfect sense. Will instead deploy a solution reliant on
parsing the output of gcc -v, as you suggested, Ian.
Many thanks for the invaluable info.
--
Miguel