From 1729e4a5c9667b4d11ef27f3d88ab83352f13715 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Sun, 7 Jun 2026 18:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E6=8E=A8=E8=8D=90=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=EF=BC=8C=E7=BB=A7=E7=BB=AD=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 结论:为 vendored LinuxCNC 的 inifile.cc 增加直接源码编译探针,使 source-manifest 中所有 .c/.cc 文件都有 standalone native 源码级编译检查。 --- wasm-port/docs/porting-steps-standalone.md | 4 ++++ wasm-port/tests/native/verify_native_probes.sh | 1 + wasm-port/tools/build_native_probes.sh | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/wasm-port/docs/porting-steps-standalone.md b/wasm-port/docs/porting-steps-standalone.md index 8aa6e45..6a49e5e 100644 --- a/wasm-port/docs/porting-steps-standalone.md +++ b/wasm-port/docs/porting-steps-standalone.md @@ -479,6 +479,10 @@ Current verified progress: compiled as C with `gcc` so its LinuxCNC C linkage is preserved. The standalone `rtapi.h` shim was made C/C++ compatible for this C-source boundary without changing vendored LinuxCNC files. +- `inifile.cc` now has its own direct source compile probe in addition to the + existing INI parser harness. With this probe, every `.c` and `.cc` file + listed in `tools/source-manifest.txt` has a native source-level compile + check under the standalone build boundary. ## Phase 4: Port INI Parsing Without Editing Upstream diff --git a/wasm-port/tests/native/verify_native_probes.sh b/wasm-port/tests/native/verify_native_probes.sh index 96ff56a..fe690d6 100755 --- a/wasm-port/tests/native/verify_native_probes.sh +++ b/wasm-port/tests/native/verify_native_probes.sh @@ -33,6 +33,7 @@ check_exitcode() { } check_exitcode linuxcnc_interp_state_probe +check_exitcode linuxcnc_inifile_source_probe check_exitcode linuxcnc_tp_api_probe check_exitcode linuxcnc_tp_api_probe.run for name in \ diff --git a/wasm-port/tools/build_native_probes.sh b/wasm-port/tools/build_native_probes.sh index 73fd6aa..fb84ede 100755 --- a/wasm-port/tools/build_native_probes.sh +++ b/wasm-port/tools/build_native_probes.sh @@ -486,6 +486,12 @@ build_binary_target \ NO_LINK_FLAGS \ -lfmt +build_object_target \ + linuxcnc_inifile_source_probe \ + "$BUILD_DIR/linuxcnc_inifile_source_probe.o" \ + "$VENDOR_DIR/src/emc/ini/inifile.cc" \ + COMMON_INI_FLAGS + build_binary_target \ linuxcnc_interp_state_probe \ "$BUILD_DIR/linuxcnc_interp_state_probe" \