From ff1171a9f52e18913a190f747ab1450e45e99a20 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sat, 26 Sep 2026 09:49:36 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=B4=A1=E7=8C=AE=E6=8C=87=E5=8D=97?= =?UTF-8?q?=E8=A1=A5=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTING.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e424cb8f..9e7180aa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,3 +21,21 @@ feat: Temporal.PlainTime round 舍入(真因子校验 + 跨午夜取模) fix: 闭包链式捕获越界改编译错误早暴露防静默错值 perf: 字符串拼接消除冗余拷贝 ``` + +## 构建产物清理 + +`target/` 是生成物,不提交。磁盘紧张时按以下入口清理: + +- 彻底清理(下次构建全量重编): + + ```bash + cargo clean + ``` + +- 定向清理陈旧测试二进制(免全量重链接): + + ```bash + find target/debug/deps -maxdepth 1 -type f -name '*_tests*' ! -newer target/debug/test262-runner -delete + ``` + + 以 runner 二进制 mtime 为界,只删早于最近一次构建的测试二进制;删除须先于任何构建动作,否则 runner 刷新后陈旧面会扩大。