[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 888ff3755d4 1/3: New function internal--c-header-file-path
From: |
Eli Zaretskii |
Subject: |
Re: master 888ff3755d4 1/3: New function internal--c-header-file-path |
Date: |
Tue, 07 Jan 2025 14:09:41 +0200 |
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Mon, 6 Jan 2025 15:44:34 -0600
> Cc: emacs-devel@gnu.org
>
> > The way to ask GCC to show the list of directories where it looks for
> > header files is like this:
> >
> > (call-process "gcc" nil BUFFER nil "-v" "-E" "-")
> >
> > and then look in BUFFER for text that begins with "#include <...>
> > search starts here:" and ends with "End of search list." What's
> > in-between is the list of include directories, one directory per line,
> > which GCC searches for header file, in the order it searches them.
>
> Thanks for helping improve this. How about the attached patch?
LGTM, thanks. But I agree with Björn that we should also try "cc".