diff options
| -rw-r--r-- | build.mk | 3 | ||||
| -rw-r--r-- | libffwd/Makefile | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -154,6 +154,9 @@ else CFLAGS = $(OPT) endif CPPFLAGS ?= +# Vendored yyjson (deps/yyjson) is the one JSON parser/writer for the whole +# tree; every component includes its header from here. +CPPFLAGS += -I$(ROOT)/deps/yyjson LDLIBS ?= SHARED_LDLIBS ?= diff --git a/libffwd/Makefile b/libffwd/Makefile index 0c831a6..b9349c3 100644 --- a/libffwd/Makefile +++ b/libffwd/Makefile @@ -14,6 +14,9 @@ SHARED_LDFLAGS += $(EXPORT_FLAGS) # Tokenizer, config, safetensors reader, and L2/cosine helpers: every backend. COMMON_SRCS := config.c vec.c tokenize.c bpe.c sentencepiece.c wordpiece.c safetensors.c +# Vendored JSON library, compiled into libffwd so config/tokenizer loading and +# every consumer (CLI, server) share one parser instead of hand-rolled scanners. +COMMON_SRCS += ../deps/yyjson/yyjson.c # CPU math kernels and SIMD dispatch. generic.c is always built; avx.c and # neon.c each guard their entire body by arch (__AVX2__ / __ARM_NEON), so the |
