加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
before_build.sh 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
dengkx 提交于 2024-03-05 21:38 . config rust toolchain
#!/bin/bash
if [ ! -d "$HOME/.rustup" ]; then
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
fi
echo "INFO: Installing cargo-binutils"
cargo install cargo-binutils
if [ $? -ne 0 ]; then
echo "ERROR: Installing cargo-binutils failed!"
exit 1
fi
echo "INFO: Installing rustup toolchain nightly"
rustup toolchain install nightly
if [ $? -ne 0 ]; then
echo "ERROR: Installing rustup toolchain nightly failed!"
exit 1
fi
# rustup default nightly
# echo "INFO: Adding rustup component rust-src"
# rustup component add rust-src
# if [ $? -ne 0 ]; then
# echo "ERROR: Adding rustup component rust-src failed!"
# exit 1
# fi
# echo "INFO: Adding rustup component llvm-tools"
# rustup component add llvm-tools
# if [ $? -ne 0 ]; then
# echo "ERROR: Adding rustup component llvm-tools failed!"
# exit 1
# fi
echo "INFO: Installing qemu-system-x86_64 for debian"
sudo apt install -y qemu-system-x86
if [ $? -ne 0 ]; then
echo "ERROR: Installing qemu-system-x86_64 for debian failed!"
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化