Skip to content

Commit a36ee1b

Browse files
committed
Makefile: update go-piper with piper 2023.11.6-3
Signed-off-by: Gianluca Boiano <[email protected]>
1 parent 4e16bc2 commit a36ee1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ endif
120120
ifeq ($(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
124126
endif
125127

@@ -503,7 +505,7 @@ backend-assets/grpc/stablediffusion: backend-assets/grpc
503505
fi
504506

505507
backend-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

509511
backend-assets/grpc/whisper: backend-assets/grpc whisper.cpp/libwhisper.a

0 commit comments

Comments
 (0)