.cargo/config
[target.x86_64-unknown-linux-musl]
linker = "rust-lld"
执行命令 cargo build --target x86_64-unknown-linux-musl
如下图,卡住不动了,有没有老哥知道怎么搞

rustup show 结果:
PS > rustup show
Default host: x86_64-pc-windows-gnu
rustup home: C:\Users\test\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-gnu (default)
stable-x86_64-pc-windows-msvc
installed targets for active toolchain
--------------------------------------
x86_64-pc-windows-gnu
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
active toolchain
----------------
stable-x86_64-pc-windows-gnu (default)
rustc 1.62.1 (e092d0b6b 2022-07-16)
1
hangbale 2022 年 7 月 29 日
用 GitHub Action 多环境编译
|
2
elechi 2022 年 8 月 1 日
没用过 rust ,看 atcive toolchain 下没有 linux 的 toolchain
|
3
ilanyu 2023 年 2 月 26 日
我也这样,x86_64-pc-windows-gnu 改为用 x86_64-pc-windows-msvc 后好了
|