]> git.eshelyaron.com Git - emacs.git/commit
Fix 'internal--c-header-file-path'
authorEli Zaretskii <eliz@gnu.org>
Fri, 28 Feb 2025 12:45:39 +0000 (14:45 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 20:51:26 +0000 (21:51 +0100)
commit7811b1e2280f83c26daf6d9922b409222b612a2d
tree1a74267806a1ffd3d04b3cdb2c9fd88229d79f04
parentd0278972943a35777b3bd1ffbb61fef9fdcfb880
Fix 'internal--c-header-file-path'

* lisp/subr.el (internal--c-header-file-path): Fix for MS-Windows:
don't prepend the (usually non-existent) "/usr/include", and run
each directory through 'expand-file-name' to remove the many ".."
elements and mirror any backslashes.  Invoke "clang" if "gcc" is
not available or is actually clang.

* test/lisp/subr-tests.el
(subr-tests-internal--c-header-file-path): Fix for MS-Windows:
test the path by looking for stdio.h, and expand all directory
names to compare to expected results.

(cherry picked from commit a04e8812ee0dfb7f2984d0b57b380cf15c73567c)
lisp/subr.el
test/lisp/subr-tests.el