]> git.eshelyaron.com Git - emacs.git/commit
Fix finding C headers with clang
authorStefan Kangas <stefankangas@gmail.com>
Mon, 6 Jan 2025 11:29:21 +0000 (12:29 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 Jan 2025 08:52:23 +0000 (09:52 +0100)
commit0b56c3138f3e3cc55ca406c157ba9a385dd27e2b
treef12f83bb82f76ee64d881c8922af96bf48f3a8f8
parente287fb3d547e08159607210c87eaa1a203f2fe78
Fix finding C headers with clang

This fixes following "#include" references in 'M-x man' buffers, and
using ffap, both on macOS machines, and on systems where for some reason
clang is available but gcc is not.

* lisp/subr.el (internal--c-header-file-path): Fix finding C
headers with clang.
(internal--gcc-is-clang-p): New function factored out from...
* lisp/emacs-lisp/ert-x.el (ert-gcc-is-clang-p): ...here.
* lisp/man.el (Man-header-file-path): Bump :version tag.

* test/lisp/subr-tests.el
(subr-tests-internal--c-header-file-path/clang-mocked): New test.

(cherry picked from commit 3dc3dbc2e38340aba7f818eab21abfd93a132175)
lisp/emacs-lisp/ert-x.el
lisp/man.el
lisp/subr.el
lisp/tty-tip.el
test/lisp/subr-tests.el