@@ -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
9494CGO_LDFLAGS_WHISPER+ =-lgomp
9595endif
9696
@@ -178,6 +178,8 @@ ALL_GRPC_BACKENDS+=backend-assets/grpc/rwkv
178178ALL_GRPC_BACKENDS+ =backend-assets/grpc/whisper
179179ALL_GRPC_BACKENDS+ =backend-assets/grpc/local-store
180180ALL_GRPC_BACKENDS+ =$(OPTIONAL_GRPC )
181+ # Use filter-out to remove the specified backends
182+ ALL_GRPC_BACKENDS := $(filter-out $(REMOVE_GRPC_BACKEND ) ,$(ALL_GRPC_BACKENDS ) )
181183
182184GRPC_BACKENDS? =$(ALL_GRPC_BACKENDS ) $(OPTIONAL_GRPC )
183185TEST_PATHS? =./api/... ./pkg/... ./core/...
362364 shasum -a 256 release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH) > release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH).sha256
363365endif
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
876878docs/static/gallery.html : docs/layouts/_default
@@ -885,4 +887,4 @@ docs-clean:
885887
886888.PHONY : docs
887889docs : docs/static/gallery.html
888- cd docs && hugo serve
890+ cd docs && hugo serve
0 commit comments