feat: support build tiktoken in Linux aarch64 (#15)

This commit is contained in:
Hanchin Hsieh 2024-08-16 10:01:51 +08:00 committed by GitHub
parent e3c162aad3
commit 2674872945
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ define download_release
curl -L https://github.com/gptlang/lua-tiktoken/releases/latest/download/tiktoken_core-$1-$2.$(EXT) -o $(BUILD_DIR)/tiktoken_core.$(EXT)
endef
ifeq ($(ARCH), arm64)
ifneq ($(filter arm64 aarch64,$(ARCH)),)
$(BUILD_DIR)/tiktoken_core.$(EXT): $(BUILD_DIR)
$(call build_from_source,luajit)
$(BUILD_DIR)/tiktoken_core-lua51.$(EXT): $(BUILD_DIR)