Skip to content

Commit 8a1ae4d

Browse files
committed
fix(local-lisp-path): add Apple Silicon homebrew lisp-site
1 parent 5e2aace commit 8a1ae4d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

build-emacs-for-macos

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,18 @@ class Build
442442
'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib'
443443
].compact.join(':')
444444

445+
local_lisp_path = [
446+
ENV.fetch('EMACS_LOCAL_LISP_PATH', '').split(':'),
447+
'/Library/Application Support/Emacs/${version}/site-lisp',
448+
'/Library/Application Support/Emacs/site-lisp',
449+
'/usr/local/share/emacs/site-lisp',
450+
'/opt/homebrew/share/emacs/site-lisp'
451+
].flatten.join(':')
452+
445453
configure_flags = [
446454
'--with-ns',
447455
'--with-modules',
448-
'--enable-locallisppath=' \
449-
'/Library/Application Support/Emacs/${version}/site-lisp:' \
450-
'/Library/Application Support/Emacs/site-lisp:' \
451-
'/usr/local/share/emacs/site-lisp'
456+
"--enable-locallisppath=#{local_lisp_path}"
452457
]
453458
if options[:xwidgets] && supports_xwidgets?
454459
configure_flags << '--with-xwidgets'

0 commit comments

Comments
 (0)