From 92c89f7616a973b4c5882e92f69b0b75ee14f03a Mon Sep 17 00:00:00 2001 From: Lixuanwang Date: Sun, 3 Aug 2025 17:12:39 +0800 Subject: [PATCH] =?UTF-8?q?[midend]=E4=BF=AE=E6=AD=A3=E4=BA=86=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/runit-single.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/runit-single.sh b/script/runit-single.sh index 31ad66a..02a34de 100644 --- a/script/runit-single.sh +++ b/script/runit-single.sh @@ -173,7 +173,9 @@ for sy_file in "${SY_FILES[@]}"; do # 步骤 1: sysyc 编译 echo " 使用 sysyc 编译 (超时 ${SYSYC_TIMEOUT}s)..." - timeout -s KILL ${SYSYC_TIMEOUT} "${SYSYC}" -s ir "${sy_file}" ${OPTIMIZE_FLAG} > "${ir_file}" + timeout -s KILL ${SYSYC_TIMEOUT} "${SYSYC}" -S "${sy_file}" ${OPTIMIZE_FLAG} -o "${assembly_file}" + # timeout -s KILL ${SYSYC_TIMEOUT} "${SYSYC}" -s ir "${sy_file}" ${OPTIMIZE_FLAG} > "${ir_file}" + # timeout -s KILL ${SYSYC_TIMEOUT} "${SYSYC}" -s asmd "${sy_file}" > "${assembly_debug_file}" 2>&1 SYSYC_STATUS=$? if [ $SYSYC_STATUS -eq 124 ]; then echo -e "\e[31m错误: SysY 编译 ${sy_file} IR超时\e[0m" @@ -186,7 +188,6 @@ for sy_file in "${SY_FILES[@]}"; do echo -e "\e[31m错误: SysY 编译失败或超时。\e[0m" is_passed=0 fi - # timeout -s KILL ${SYSYC_TIMEOUT} "${SYSYC}" -s asmd "${sy_file}" > "${assembly_debug_file}" 2>&1 # 步骤 2: GCC 编译 if [ "$is_passed" -eq 1 ]; then