File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -442,13 +442,18 @@ class Build
442
442
'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib'
443
443
] . compact . join ( ':' )
444
444
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
+
445
453
configure_flags = [
446
454
'--with-ns' ,
447
455
'--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 } "
452
457
]
453
458
if options [ :xwidgets ] && supports_xwidgets?
454
459
configure_flags << '--with-xwidgets'
You can’t perform that action at this time.
0 commit comments