script:ish构建脚本添加。

This commit is contained in:
taynpg 2025-02-07 16:55:38 +08:00
parent 84b488441b
commit 8069ef7810

View File

@ -1,2 +1,14 @@
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
#!/bin/bash
# 默认构建命令
build_command="cmake -Bbuild -DCMAKE_BUILD_TYPE=Release"
build_command_release="cmake --build build --config Release"
# 检查是否传入 -ish 参数
if [[ "$1" == "-ish" ]]; then
build_command="$build_command -DIOS_ISH=True"
fi
# 执行命令
$build_command
$build_command_release