From a985d8c239c2d097fd19625096f00d9c6cff1c11 Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Fri, 5 Jul 2024 19:19:38 +0200 Subject: [PATCH] Allows to remove a backend from the list (#2721) * Allows to remove a backend from the list Signed-off-by: Mauro Morales * Update Makefile Co-authored-by: Ettore Di Giacinto Signed-off-by: Mauro Morales --------- Signed-off-by: Mauro Morales Co-authored-by: Ettore Di Giacinto --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f0b7b34f..abc0b64b 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ ifeq ($(OS),Darwin) # -lcblas removed: it seems to always be listed as a duplicate flag. CGO_LDFLAGS += -framework Accelerate endif -else +else CGO_LDFLAGS_WHISPER+=-lgomp endif @@ -178,6 +178,8 @@ ALL_GRPC_BACKENDS+=backend-assets/grpc/rwkv ALL_GRPC_BACKENDS+=backend-assets/grpc/whisper ALL_GRPC_BACKENDS+=backend-assets/grpc/local-store ALL_GRPC_BACKENDS+=$(OPTIONAL_GRPC) +# Use filter-out to remove the specified backends +ALL_GRPC_BACKENDS := $(filter-out $(SKIP_GRPC_BACKEND),$(ALL_GRPC_BACKENDS)) GRPC_BACKENDS?=$(ALL_GRPC_BACKENDS) $(OPTIONAL_GRPC) TEST_PATHS?=./api/... ./pkg/... ./core/... @@ -362,7 +364,7 @@ else shasum -a 256 release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH) > release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH).sha256 endif -dist-cross-linux-arm64: +dist-cross-linux-arm64: CMAKE_ARGS="$(CMAKE_ARGS) -DGGML_NATIVE=off" GRPC_BACKENDS="backend-assets/grpc/llama-cpp-fallback backend-assets/grpc/llama-cpp-grpc backend-assets/util/llama-cpp-rpc-server" \ STATIC=true $(MAKE) build mkdir -p release @@ -870,7 +872,7 @@ gen-assets: $(GOCMD) run core/dependencies_manager/manager.go embedded/webui_static.yaml core/http/static/assets ## Documentation -docs/layouts/_default: +docs/layouts/_default: mkdir -p docs/layouts/_default docs/static/gallery.html: docs/layouts/_default @@ -885,4 +887,4 @@ docs-clean: .PHONY: docs docs: docs/static/gallery.html - cd docs && hugo serve \ No newline at end of file + cd docs && hugo serve