高效率推进 LinuxCNC 源码对齐流程
说明:集中 LinuxCNC 源码清单与 wasm/native probe 的路径解析,补强 manifest、shim、source-link 检查,并保持 LinuxCNC 源码后端对齐验证流程可复用。 验证:./test-native.sh;./test-linuxcnc-source-link.sh;./test-all-native.sh;wasm source/probe 相关脚本。
This commit is contained in:
@@ -11,12 +11,11 @@ if [[ ! -d "$linuxcnc_root" ]]; then
|
||||
echo "missing LinuxCNC root: $linuxcnc_root" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -f "$linuxcnc_root/src/emc/rs274ngc/interp_base.cc" ]]; then
|
||||
echo "missing LinuxCNC source: src/emc/rs274ngc/interp_base.cc" >&2
|
||||
exit 1
|
||||
fi
|
||||
trap 'rm -rf "$build_dir"' EXIT
|
||||
|
||||
dlfcn_shim=$(./list-linuxcnc-wasm-safe-shims.sh dlfcn.cc)
|
||||
interp_base_source=$(LINUXCNC_ROOT="$linuxcnc_root" ./list-linuxcnc-source-files.sh src/emc/rs274ngc/interp_base.cc)
|
||||
|
||||
common_flags=(
|
||||
-std=c++17
|
||||
-DULAPI
|
||||
@@ -30,8 +29,8 @@ common_flags=(
|
||||
)
|
||||
|
||||
"$cxx" "${common_flags[@]}" \
|
||||
core/wasm_shims/dlfcn.cc \
|
||||
"$linuxcnc_root/src/emc/rs274ngc/interp_base.cc" \
|
||||
"$dlfcn_shim" \
|
||||
"$interp_base_source" \
|
||||
core/wasm_shims/interp_base_probe_main.cc \
|
||||
-o "$build_dir/interp_base_probe"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user