This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
extracting implicit arguments
- From: Stefan Seefeld <seefeld at sympatico dot ca>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 16 Nov 2001 11:26:30 -0500
- Subject: extracting implicit arguments
hi there,
I'm looking for a way to obtain all CPPFLAGS that
are implicitely used by the compiler, such as header
search paths etc.
I'm working on a C++ parser that can be used with
gcc's preprocessor as well as it's own built-in one.
In the latter case, we have to specify all the search
paths such that the actual code as seen by the parser
is identical.
What is the suggested way of doing this ? I could
invoke 'gcc -v dummy.cc' and parse the output, but looks
like a hack, that might not even be portable (across
various gcc versions).
Regards,
Stefan