August 13, 2023
This is an update to my post about compiling Emacs 28.1 from source. With the recent release of Emacs 29.1, here are the steps I used to upgrade.
Backup and delete /Applications/Emacs.app if you have one.
brew update brew reinstall gcc brew install libgccjit texinfo tree-sitter jansson sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install
It still seems to be necessary to re-install Xcode command-line tools to prevent Emacs from getting killed on launch.
I don't tend to remote into my Emacs session any more so I didn't bother updating or applying the multi-tty patch. I may reconsider that if my needs change in the future.
git clone https://bitbucket.org/mituharu/emacs-mac cd emacs-mac git checkout emacs-29.1-mac-10.0
autoreconf -i ./configure \ --with-native-compilation \ --with-modules \ --enable-mac-app \ --with-xwidgets \ --with-no-frame-refocus \ --with-tree-sitter \ --prefix=/Applications/Emacs.app/Contents/Resources make
I didn't have much luck with
make install so I just manually moved
This was pretty smooth for me, probably because I had things nicely wired up from my previous installation. Good luck!
UPDATE 2023-10-02 to add
--with-tree-sitter configuration option and manual installation process.