This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Small feature for gcc


Mike Stump wrote:

> > Would it not be usefull to get the standard include directories
> > using the gcc-executable?  Maybe with the option:
> > "-list-search-dirs".
> And how does this differ exactly from -v?  Did you know about -v?

He might have meant without all the cruft so he could backtick it, e.g.:

    for _d in `gcc -print-include-search`; do
        if [ -f $_d/stdio.h ]; then
            STDIO_PATH=$_d/stdio.h
            break
        fi
    done

I can't think of a good reason why you'd want to do that, though.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]