git clone git://git.savannah.gnu.org/emacs.git cd emacs git checkout emacs-28 # 以emacs 28为例,你可以切换到其他的branch
brew install libgccjit
./autogen.sh ./configure \ --with-mailutils \ --with-json \ --with-native-compilation make -j4 make install
# 直接打开 Emacs open nextstep/Emacs.app # 在 Finder 中打开 Emacs,方便拖到 /Applications open -R nextstep/Emacs.app mv nextSteps/Emacs.app /Applications