Skip to content

Instantly share code, notes, and snippets.

@alexispurslane
Created January 9, 2026 15:54
Show Gist options
  • Select an option

  • Save alexispurslane/97e4bd2fc935c5e8ddfd4154d887456b to your computer and use it in GitHub Desktop.

Select an option

Save alexispurslane/97e4bd2fc935c5e8ddfd4154d887456b to your computer and use it in GitHub Desktop.
make distclean
# Environment Setup
export LDFLAGS="-L$(brew --prefix libmps)/lib -L$(brew --prefix tree-sitter)/lib"
export CPPFLAGS="-I$(brew --prefix libmps)/include -I$(brew --prefix tree-sitter)/include"
export CFLAGS="-O3 -march=native -fno-finite-math-only -fno-trapping-math -fassociative-math -freciprocal-math"
./configure \
--with-ns \
--with-mps \
--with-native-compilation=aot \
--with-tree-sitter \
--with-imagemagick \
--with-mailutils \
--without-gsettings \
--without-compress-install
make -j$(sysctl -n hw.ncpu)
make install
cat > entitlements.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
EOF
codesign --force --options runtime --entitlements entitlements.plist --sign - nextstep/Emacs.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment