build: add new WASM specific release/build tags

We need to drop things like postgres+etcd, as they don't understand the
WASM/JS build target.
This commit is contained in:
Olaoluwa Osuntokun 2021-11-15 17:13:38 -08:00
parent f7dd70b5cb
commit 1bff146c43
No known key found for this signature in database
GPG key ID: 3BBD59E99B280306
2 changed files with 3 additions and 1 deletions

View file

@ -306,7 +306,7 @@ rpc-check: rpc
rpc-js-compile:
@$(call print, "Compiling JSON/WASM stubs.")
GOOS=js GOARCH=wasm $(GOBUILD) -tags="$(RELEASE_TAGS)" $(PKG)/lnrpc/...
GOOS=js GOARCH=wasm $(GOBUILD) -tags="$(WASM_RELEASE_TAGS)" $(PKG)/lnrpc/...
sample-conf-check:
@$(call print, "Making sure every flag has an example in the sample-lnd.conf file")

View file

@ -39,6 +39,8 @@ windows-arm
RELEASE_TAGS = autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc monitoring kvdb_postgres kvdb_etcd
WASM_RELEASE_TAGS = autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc monitoring
# One can either specify a git tag as the version suffix or one is generated
# from the current date.
ifneq ($(tag),)