Skip to content

Commit a985d8c

Browse files
mauromoralesmudler
andauthored
Allows to remove a backend from the list (#2721)
* Allows to remove a backend from the list Signed-off-by: Mauro Morales <[email protected]> * Update Makefile Co-authored-by: Ettore Di Giacinto <[email protected]> Signed-off-by: Mauro Morales <[email protected]> --------- Signed-off-by: Mauro Morales <[email protected]> Co-authored-by: Ettore Di Giacinto <[email protected]>
1 parent 17608ea commit a985d8c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ifeq ($(OS),Darwin)
9090
# -lcblas removed: it seems to always be listed as a duplicate flag.
9191
CGO_LDFLAGS += -framework Accelerate
9292
endif
93-
else
93+
else
9494
CGO_LDFLAGS_WHISPER+=-lgomp
9595
endif
9696

@@ -178,6 +178,8 @@ ALL_GRPC_BACKENDS+=backend-assets/grpc/rwkv
178178
ALL_GRPC_BACKENDS+=backend-assets/grpc/whisper
179179
ALL_GRPC_BACKENDS+=backend-assets/grpc/local-store
180180
ALL_GRPC_BACKENDS+=$(OPTIONAL_GRPC)
181+
# Use filter-out to remove the specified backends
182+
ALL_GRPC_BACKENDS := $(filter-out $(SKIP_GRPC_BACKEND),$(ALL_GRPC_BACKENDS))
181183

182184
GRPC_BACKENDS?=$(ALL_GRPC_BACKENDS) $(OPTIONAL_GRPC)
183185
TEST_PATHS?=./api/... ./pkg/... ./core/...
@@ -362,7 +364,7 @@ else
362364
shasum -a 256 release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH) > release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH).sha256
363365
endif
364366

365-
dist-cross-linux-arm64:
367+
dist-cross-linux-arm64:
366368
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" \
367369
STATIC=true $(MAKE) build
368370
mkdir -p release
@@ -870,7 +872,7 @@ gen-assets:
870872
$(GOCMD) run core/dependencies_manager/manager.go embedded/webui_static.yaml core/http/static/assets
871873

872874
## Documentation
873-
docs/layouts/_default:
875+
docs/layouts/_default:
874876
mkdir -p docs/layouts/_default
875877

876878
docs/static/gallery.html: docs/layouts/_default
@@ -885,4 +887,4 @@ docs-clean:
885887

886888
.PHONY: docs
887889
docs: docs/static/gallery.html
888-
cd docs && hugo serve
890+
cd docs && hugo serve

0 commit comments

Comments
 (0)