From 26748729455cfc95704c204ec0d6cb548d99f493 Mon Sep 17 00:00:00 2001 From: Hanchin Hsieh Date: Fri, 16 Aug 2024 10:01:51 +0800 Subject: [PATCH] feat: support build tiktoken in Linux aarch64 (#15) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d12f20c..b7e384d 100644 --- a/Makefile +++ b/Makefile @@ -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)