From ec91a4e259659c205bdaa4ad2a401462f05a1a44 Mon Sep 17 00:00:00 2001 From: Lixuanwang Date: Sun, 3 Aug 2025 17:26:09 +0800 Subject: [PATCH] =?UTF-8?q?[backend]=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=9C=A8=E4=BC=9A=E6=8B=B7=E8=B4=9D.sy?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=B0tmp=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/runit-single.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/runit-single.sh b/script/runit-single.sh index 02a34de..c6dacee 100644 --- a/script/runit-single.sh +++ b/script/runit-single.sh @@ -171,6 +171,16 @@ for sy_file in "${SY_FILES[@]}"; do echo "======================================================================" echo "正在处理: ${sy_file}" + # --- 本次修改点: 拷贝源文件到 tmp 目录 --- + echo " 拷贝源文件到 ${TMP_DIR}..." + cp "${sy_file}" "${TMP_DIR}/$(basename "${sy_file}")" + if [ -f "${input_file}" ]; then + cp "${input_file}" "${TMP_DIR}/$(basename "${input_file}")" + fi + if [ -f "${output_reference_file}" ]; then + cp "${output_reference_file}" "${TMP_DIR}/$(basename "${output_reference_file}")" + fi + # 步骤 1: sysyc 编译 echo " 使用 sysyc 编译 (超时 ${SYSYC_TIMEOUT}s)..." timeout -s KILL ${SYSYC_TIMEOUT} "${SYSYC}" -S "${sy_file}" ${OPTIMIZE_FLAG} -o "${assembly_file}"