小编Joh*_*les的帖子

如何在OSX中从命令行启动GUI Emacs?

如何从OSX中的命令行启动GUI Emacs?

我已经从http://emacsformacosx.com/下载并安装了Emacs .

我会接受满足以下所有条件的答案:

  1. emacs窗口我的终端窗口前面打开.
  2. 键入"emacs"会启动GUI Emacs窗口.在该窗口中查找文件将默认查找我启动Emacs的目录.
  3. 当foo.txt存在时键入"emacs foo.txt"会启动加载了foo.txt的GUI Emacs窗口.
  4. 键入"emacs的foo.txt的"当foo.txt的确实存在与推出名为"foo.txt的"空文本缓冲的GUI Emacs窗口.在该缓冲区中执行^ X ^ S会将foo.txt保存在我启动Emacs的目录中.

macos emacs command-line

86
推荐指数
4
解决办法
9万
查看次数

如何将 Rust 应用程序从 macOS x86 交叉编译到 macOS Silicon?

我想将一个 Rust 程序从我的 x86 Mac 交叉编译成一个可以在 Silicon Mac 上运行的二进制文件,但我无法弄清楚链接。

我有:

我想把它编译成一个可以在 Silicon (ARM) Mac 上运行的二进制文件。这可能是以下之一:

  • 特定于硅的二进制文件
  • 可以在硅或 x86 上运行的通用二进制文件

试过(通过./release.sh --dry

  • rustup target add aarch64-apple-darwin
  • cargo build --release --target=aarch64-apple-darwin

结果太长,贴不上来,摘录如下:

   Compiling riff v0.1.0 (/Users/johan/src/riff)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-arch arm64" "-L" "/Users/johan/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/johan/src/riff/target/aarch64-apple-darwin/release/deps/riff.1g47gi93dk96t2va.rcgu.o" ... "/Users/johan/src/riff/target/aarch64-apple-darwin/release/deps/riff.thread_local-9baf7723f72eef37.thread_local.7fl1y1d9-cgu.9.rcgu.o.rcgu.o" …
Run Code Online (Sandbox Code Playgroud)

macos cross-compiling rust apple-silicon

3
推荐指数
1
解决办法
652
查看次数