按提示词结论补 wasm guardrail 源码依据

This commit is contained in:
cnc
2026-06-02 12:55:36 +08:00
parent 08978b82de
commit 154fc7578a
3 changed files with 13 additions and 0 deletions

View File

@@ -3,6 +3,11 @@ set -euo pipefail
cd "$(dirname "$0")"
# LinuxCNC source basis: object probes compile the core entries selected from
# linuxcnc-rs274-wasm-source-files.txt, including src/emc/rs274ngc,
# src/emc/tooldata/tooldata_common.cc, src/emc/ini/inifile.cc, and
# src/emc/nml_intf/emcops.cc, together with wasm-safe shims that replace the
# manifest's blocked Python, dlopen, tooldata mmap, HAL, and runtime edges.
usage() {
echo "usage: $0 --mode source-objects|rs274ngc-pre|runtime [manifest]" >&2
}

View File

@@ -3,6 +3,9 @@ set -euo pipefail
cd "$(dirname "$0")"
# LinuxCNC source basis: linuxcnc-rs274-wasm-source-files.txt enumerates the
# RS274, tooldata, INI, NML, RTAPI, HAL, and PythonPlugin LinuxCNC files that
# are compile-checked or shimmed for the browser/WASM source-link path.
manifest=${1:-linuxcnc-rs274-wasm-source-files.txt}
filter_group=${2:-core}
output_mode=${3:-relative}

View File

@@ -3,6 +3,11 @@ set -euo pipefail
cd "$(dirname "$0")"
# LinuxCNC source basis: this guardrail locks the blocker categories reported
# by analyze-linuxcnc-wasm-blockers.sh for the RS274/WASM manifest. The locked
# groups cover LinuxCNC Python/Boost.Python module bindings, tooldata mmap,
# dlopen use, and native filesystem calls found in src/emc/rs274ngc and
# src/emc/tooldata.
manifest=${1:-linuxcnc-rs274-wasm-source-files.txt}
self_checks=${CNC_SIM_WASM_BLOCKERS_SELF_CHECKS:-0}
if [[ "$self_checks" != "0" && "$self_checks" != "1" ]]; then