Commit e735e99a
e735e99a1233Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified
Description
chore: drop the --lonig option from the spinel command
The --lonig option appended -lonig to link oniguruma, dating from
when Spinel's regexp support was a thin wrapper over oniguruma. The
in-tree regexp engine (lib/regexp/re_compile.c, re_exec.c, re_utf8.c)
is now bundled into lib/libspinel_rt.a — already linked by the script
at line 131 — and there are no other consumers of -lonig in the build.
The only file in the tree that still includes <oniguruma.h> is lib/strscan.c (StringScanner support), but it isn't wired into the codegen and isn't referenced from any test, benchmark, or generated output. Leaving the file in place; just removing the dead CLI option.
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Details
- Commit
- e735e99a1233
- Parent
- f411b843fab0
spinelmodifiedView file
# -S Print generated C to stdout# -O LEVEL Optimization level for cc (default: 2)# --cc=CMD C compiler command (default: cc)# --lonig Link with oniguruma (for regexp programs)DIR="$(cd "$(dirname "$(readlink -f "$0" 2>/dev/null || realpath "$0" 2>/dev/null || echo "$0")")" && pwd)"PARSE_BIN="$DIR/spinel_parse" -O) shift; OPT_LEVEL="$1" ;; -c) C_ONLY=1 ;; -S) STDOUT_MODE=1 ;; --lonig) EXTRA_FLAGS="$EXTRA_FLAGS -lonig" ;; *.rb) [ -z "$SOURCE" ] && SOURCE="$1" ;; esac shift echo " -S Print C to stdout" >&2 echo " -O LEVEL Optimization level (default: 2)" >&2 echo " --cc=CMD C compiler (default: cc)" >&2 echo " --lonig Link with oniguruma (regexp)" >&2 exit 1fi