按提示词结论补 wasm 探针源依据锁
This commit is contained in:
@@ -3,6 +3,9 @@ set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# LinuxCNC source basis: link probe modes reuse wasm-safe objects built from
|
||||
# linuxcnc-rs274-wasm-source-files.txt and add only a narrow probe main that
|
||||
# asserts LinuxCNC rs274ngc_pre/runtime symbols stay linked.
|
||||
usage() {
|
||||
echo "usage: $0 --mode rs274ngc-pre|runtime [manifest]" >&2
|
||||
}
|
||||
@@ -82,6 +85,9 @@ target_name=rs274ngc_pre_probe
|
||||
common_flag_output=$(LINUXCNC_ROOT="$linuxcnc_root" ./list-linuxcnc-wasm-common-cxxflags.sh --profile core20-sections)
|
||||
mapfile -t common_flags <<<"$common_flag_output"
|
||||
case "$mode" in
|
||||
rs274ngc-pre)
|
||||
grep -F 'LinuxCNC source basis: src/emc/rs274ngc/rs274ngc_pre.cc provides' "$main_source" >/dev/null
|
||||
;;
|
||||
runtime)
|
||||
object_mode=runtime
|
||||
main_source=core/wasm_shims/cnc_sim_wasm_runtime_probe_main.cc
|
||||
|
||||
Reference in New Issue
Block a user