链接编译器
rustup toolchain link stage1 build/x86_64-apple-darwin/stage1
其中,x86_64-apple-darwin
应当换成主机的编译目标。
当我们用stage1编译应用程序前,在目标仓库新建一个rust-toolchain.toml
文件,填入以下内容。
[toolchain]
channel = "stage1"
这样使用cargo build
等指令就不需要带其它参数了。另外,开发工具比如rust-analyzer也可以识别此文件的内容,以避免额外的配置。
1
共 0 条评论, 1 页
评论区
写评论还没有评论