From bc80d74d1fe4288e73262298659c17c162601357 Mon Sep 17 00:00:00 2001 From: cnc Date: Fri, 5 Jun 2026 07:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E8=80=83=E6=89=80=E6=9C=89=E5=88=86?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E5=AE=8C=E6=88=90=E5=B0=BD=E9=87=8F=E5=A4=9A?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AE=B9=EF=BC=9A=E6=94=B6=E7=B4=A7build=20s?= =?UTF-8?q?ource-map=E8=BE=B9=E7=95=8C=E5=AE=88=E5=8D=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check-linuxcnc-build-source-map.sh | 5 ++++- docs/linuxcnc-build-source-map.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/check-linuxcnc-build-source-map.sh b/check-linuxcnc-build-source-map.sh index 90f1c07..a5761f8 100755 --- a/check-linuxcnc-build-source-map.sh +++ b/check-linuxcnc-build-source-map.sh @@ -6,7 +6,8 @@ cd "$(dirname "$0")" # LinuxCNC source basis: this guard ties native/source-link/WASM build entry # points to LinuxCNC Submakefile source ownership, source manifests, persistent # build signatures, and source-backed WASM artifact ordering. It validates -# build policy only; it does not add CNC behavior or expand smoke parsing. +# build policy only; it does not add CNC behavior, expand smoke parsing, or +# interpret G-code. linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc} linuxcnc_root=$(cd "$linuxcnc_root" && pwd) @@ -149,6 +150,8 @@ for phrase in [ "CONFIGURE_RULE_VERSION", "CNC_SIM_ENABLE_SMOKE_BACKEND=OFF", "Node smoke before browser smoke", + "does not interpret", + "G-code", ]: if phrase not in source_map: raise SystemExit(f"docs/linuxcnc-build-source-map.md missing boundary phrase: {phrase}") diff --git a/docs/linuxcnc-build-source-map.md b/docs/linuxcnc-build-source-map.md index 0d62591..9826b1f 100644 --- a/docs/linuxcnc-build-source-map.md +++ b/docs/linuxcnc-build-source-map.md @@ -49,6 +49,9 @@ behavior and must not expand the temporary smoke parser. copied artifacts with `cmp -s`, and run Node smoke before browser smoke. - Build directory overrides must be non-empty, whitespace-free, and outside the filesystem root. +- The build source-map guard validates LinuxCNC build-source ownership, + manifest partitions, and artifact ordering only; it does not interpret + G-code. ## Checks @@ -58,6 +61,7 @@ Run: ./check-linuxcnc-build-source-map.sh ./test-native.sh ./test-linuxcnc-source-link.sh +./build-wasm.sh ``` `check-linuxcnc-build-source-map.sh` keeps this document, LinuxCNC build-source