これまでbrewのemacs-macのEmacs 29を使ってきたのだが、30も既に30.2が出ている。 久しぶりに手元でビルドしたものを使ってみた。

ns-inline-patchを利用させていただいた。ここのbuild/emacs-30.shで、--with-tree-sitter=yesにした上で、native compileありでビルドした。

native compilationありでビルドしたものを起動するとlibgccjit.so: error: error invoking gcc driverが出まくってnative compilationが動作しないので、init.elの先頭に以下を追記した。

(when (eq system-type 'darwin)
  (setenv "LIBRARY_PATH"
          (string-join
           '("/opt/homebrew/opt/gcc/lib/gcc/15"
             "/opt/homebrew/opt/libgccjit/lib/gcc/15"
             "/opt/homebrew/opt/gcc/lib/gcc/15/gcc/aarch64-apple-darwin25/15")
           ":")))