From 8069ef781000cd569e6d2f2dd72dda902068ef1d Mon Sep 17 00:00:00 2001 From: taynpg Date: Fri, 7 Feb 2025 16:55:38 +0800 Subject: [PATCH] =?UTF-8?q?script=EF=BC=9Aish=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=B7=BB=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index b51d3ea..3c75792 100755 --- a/build.sh +++ b/build.sh @@ -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