kvdb: exclude anything bbolt related from JS builds

Since bbolt uses syscalls for memory mapping that aren't available in
JS/WASM builds, we need to make sure we don't reference that code at
all. Otherwise we can't use parts of lnd as a library in projects that
are being compiled down to a WASM binary.
This commit is contained in:
Oliver Gugger committed 2021-07-22 09:47:37 +02:00
1 parent 73aa40f00e
commit 724ca7a358
3 files changed
+52

No files matched your search

+2
View File
@@ -2,6 +2,8 @@
// implemented in this file:
// https://github.com/etcd-io/bbolt/blob/master/cmd/bbolt/main.go
// +build !js
package kvdb
import (