用户工具

站点工具


build_emacs_on_macos

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
build_emacs_on_macos [2026/01/08 10:52] jiajibuild_emacs_on_macos [2026/01/09 02:09] (当前版本) – [测试] jiaji
行 31: 行 31:
 ./autogen.sh ./autogen.sh
  
-# 配置,指定安装路径到用户目录 
 ./configure \ ./configure \
   --with-ns \   --with-ns \
行 42: 行 41:
   --without-sound \   --without-sound \
   --without-rsvg \   --without-rsvg \
-  --without-webp +  --without-webp 
-  --with-native-compilation=aot \ +
-  --disable-ns-self-contained \ +
-  --prefix=$HOME/.local \ +
-  CFLAGS="-O3 -march=native -mtune=native -flto -pipe" \ +
-  LDFLAGS="-flto"+
  
-# 重新编译(如果需要) 
 make -j$(sysctl -n hw.ncpu) make -j$(sysctl -n hw.ncpu)
- +make install  现在不会尝试安装到系统目录
-# 安装到用户目录(不需要 sudo) +
-make install +
-# 编译 +
-make -j$(sysctl -n hw.ncpu) +
- +
-# 安装 +
-make install+
  
 echo "构建完成!Emacs.app 位于 nextstep/Emacs.app" echo "构建完成!Emacs.app 位于 nextstep/Emacs.app"
 ``` ```
- +### 安装
-### 测试+
  
 ``` ```
-# 直接打开 Emacs 
-open nextstep/Emacs.app 
 # 在 Finder 中打开 Emacs,方便拖到 /Applications # 在 Finder 中打开 Emacs,方便拖到 /Applications
 open -R nextstep/Emacs.app open -R nextstep/Emacs.app
build_emacs_on_macos.1767869556.txt.gz · 最后更改: jiaji