按推荐建议,继续执行

结论:为 vendored LinuxCNC 的 inifile.cc 增加直接源码编译探针,使 source-manifest 中所有 .c/.cc 文件都有 standalone native 源码级编译检查。
This commit is contained in:
2026-06-07 18:25:57 +08:00
parent e7361ddbd0
commit 1729e4a5c9
3 changed files with 11 additions and 0 deletions

View File

@@ -479,6 +479,10 @@ Current verified progress:
compiled as C with `gcc` so its LinuxCNC C linkage is preserved. The 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 standalone `rtapi.h` shim was made C/C++ compatible for this C-source
boundary without changing vendored LinuxCNC files. 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 ## Phase 4: Port INI Parsing Without Editing Upstream

View File

@@ -33,6 +33,7 @@ check_exitcode() {
} }
check_exitcode linuxcnc_interp_state_probe check_exitcode linuxcnc_interp_state_probe
check_exitcode linuxcnc_inifile_source_probe
check_exitcode linuxcnc_tp_api_probe check_exitcode linuxcnc_tp_api_probe
check_exitcode linuxcnc_tp_api_probe.run check_exitcode linuxcnc_tp_api_probe.run
for name in \ for name in \

View File

@@ -486,6 +486,12 @@ build_binary_target \
NO_LINK_FLAGS \ NO_LINK_FLAGS \
-lfmt -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 \ build_binary_target \
linuxcnc_interp_state_probe \ linuxcnc_interp_state_probe \
"$BUILD_DIR/linuxcnc_interp_state_probe" \ "$BUILD_DIR/linuxcnc_interp_state_probe" \