From 52e4d8cbba16fc838e07087ea616bd265781a9e1 Mon Sep 17 00:00:00 2001 From: Sg4Dylan Date: Mon, 30 Mar 2026 10:33:55 +0800 Subject: [PATCH] support windows --- tokenizer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tokenizer.go b/tokenizer.go index 08b5eff3..c0d06cc0 100644 --- a/tokenizer.go +++ b/tokenizer.go @@ -3,7 +3,9 @@ package tokenizers // TODO packaging: how do we build the rust lib for distribution? /* -#cgo LDFLAGS: -ltokenizers -ldl -lm -lstdc++ +#cgo windows LDFLAGS: -ltokenizers -lm -lstdc++ -lws2_32 -luserenv +#cgo linux LDFLAGS: -ltokenizers -ldl -lm -lstdc++ +#cgo darwin LDFLAGS: -ltokenizers -ldl -lm -lstdc++ #include #include "tokenizers.h"