加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 655 Bytes
一键复制 编辑 原始数据 按行查看 历史
supermoon 提交于 2024-04-11 23:20 . Refactor buffer
#!/bin/bash
git submodule init
git submodule update
git pull
# Detect the operating system
os=$(uname)
if [ "$os" == "Linux" ]; then
# Execute Linux commands
echo "Running on Linux"
cpu_num=$(cat /proc/cpuinfo | grep "processor" | wc -l)
make config=release -j$cpu_num
elif [ "$os" == "Darwin" ]; then
# Execute macOS commands
# /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
echo "Running on macOS"
cpu_num=$(sysctl -n machdep.cpu.thread_count)
brew install premake
premake5 gmake --cc=clang
make config=release
else
echo "Unknown operating system"
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化