Emacs master built from source.
./autogen.sh
./configure
--enable-link-time-optimization
--without-all
--with-cairo
--with-gnutls
--with-harfbuzz
--with-modules
--with-native-compilation=aot
--with-pgtk
--with-small-ja-dic
--with-tree-sitter
--with-threads
--with-toolkit-scroll-bars
--with-xml2
--with-zlib
CFLAGS="-O2 -pipe -mtune=native -march=native -fomit-frame-pointer"
make -j
sudo make install
If debugging:
CFLAGS="-Og -ggdb3 -pipe -mtune=native -march=native"