File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ endif
120120ifeq ($(findstring tts,$(GO_TAGS ) ) ,tts)
121121# OPTIONAL_TARGETS+=go-piper/libpiper_binding.a
122122# OPTIONAL_TARGETS+=backend-assets/espeak-ng-data
123+ CGO_CXXFLAGS+=-I$(shell pwd)/go-piper/piper/src/cpp -I$(shell pwd)/go-piper/piper/build/fi/include -I$(shell pwd)/go-piper/piper/build/pi/include -I$(shell pwd)/go-piper/piper/build/si/include
124+ CGO_LDFLAGS+=-L$(shell pwd)/go-piper/piper/build/fi/lib -L$(shell pwd)/go-piper/piper/build/pi/lib -L$(shell pwd)/go-piper/piper/build/si/lib -lfmt -lspdlog
123125 OPTIONAL_GRPC+=backend-assets/grpc/piper
124126endif
125127
@@ -503,7 +505,7 @@ backend-assets/grpc/stablediffusion: backend-assets/grpc
503505 fi
504506
505507backend-assets/grpc/piper : backend-assets/grpc backend-assets/espeak-ng-data go-piper/libpiper_binding.a
506- CGO_LDFLAGS=" $( CGO_LDFLAGS) " LIBRARY_PATH=$(shell pwd) /go-piper \
508+ CGO_CXXFLAGS= " $( CGO_CXXFLAGS ) " CGO_LDFLAGS=" $( CGO_LDFLAGS) " LIBRARY_PATH=$(shell pwd) /go-piper \
507509 $(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/piper ./cmd/grpc/piper/
508510
509511backend-assets/grpc/whisper : backend-assets/grpc whisper.cpp/libwhisper.a
You can’t perform that action at this time.
0 commit comments