diff --git a/Makefile b/Makefile index d3b1941..55afc4e 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,18 @@ all: build build: $(GO) install -tags '$(GO_BUILD_TAGS)' ./... +build_use_lmdb: + $(GO) install -tags '$(GO_BUILD_TAGS) lmdb' ./... + clean: $(GO) clean -i ./... test: $(GO) test --race -tags '$(GO_BUILD_TAGS)' ./... +test_use_lmdb: + $(GO) test --race -tags '$(GO_BUILD_TAGS) lmdb' ./... + test_ledis: $(GO) test --race -tags '$(GO_BUILD_TAGS)' ./ledis diff --git a/store/mdb/mdb.go b/store/mdb/mdb.go index 6bf26f6..db27b33 100644 --- a/store/mdb/mdb.go +++ b/store/mdb/mdb.go @@ -1,4 +1,4 @@ -// +build !windows +// +build lmdb package mdb diff --git a/store/mdb/snapshot.go b/store/mdb/snapshot.go index 270907d..0882cd6 100644 --- a/store/mdb/snapshot.go +++ b/store/mdb/snapshot.go @@ -1,4 +1,4 @@ -// +build !windows +// +build lmdb package mdb diff --git a/store/mdb/tx.go b/store/mdb/tx.go index e2e3be0..a4fc01b 100644 --- a/store/mdb/tx.go +++ b/store/mdb/tx.go @@ -1,4 +1,4 @@ -// +build !windows +// +build lmdb package mdb