mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
conditionally compile sqlite
This commit is contained in:
parent
3885374edf
commit
4aa39ef33f
2
Makefile
2
Makefile
|
@ -8,4 +8,4 @@ install:
|
||||||
cd weed; go install
|
cd weed; go install
|
||||||
|
|
||||||
full_install:
|
full_install:
|
||||||
cd weed; go install -tags "elastic gocdk"
|
cd weed; go install -tags "elastic gocdk sqlite"
|
||||||
|
|
9
weed/filer/sqlite/doc.go
Normal file
9
weed/filer/sqlite/doc.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
|
||||||
|
Package sqlite is for sqlite filer store.
|
||||||
|
|
||||||
|
The referenced "modernc.org/sqlite" library is too big when compiled.
|
||||||
|
So this is only compiled in "make full_install".
|
||||||
|
|
||||||
|
*/
|
||||||
|
package sqlite
|
|
@ -1,5 +1,6 @@
|
||||||
//go:build linux || darwin || windows
|
//go:build (linux || darwin || windows) && sqlite
|
||||||
// +build linux darwin windows
|
// +build linux darwin windows
|
||||||
|
// +build sqlite
|
||||||
|
|
||||||
// limited GOOS due to modernc.org/libc/unistd
|
// limited GOOS due to modernc.org/libc/unistd
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//go:build !linux && !darwin && !windows && !s390 && !ppc64le && !mips64
|
//go:build !linux && !darwin && !windows && !s390 && !ppc64le && !mips64 && !sqlite
|
||||||
// +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64
|
// +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64,!sqlite
|
||||||
|
|
||||||
// limited GOOS due to modernc.org/libc/unistd
|
// limited GOOS due to modernc.org/libc/unistd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue