Fix 386 cross compile and wasm build for crawshaw

This commit is contained in:
Matt Joiner 2022-03-15 14:37:52 +11:00
parent 5a61d8f6ac
commit 7979d7ef96
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
5 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,8 @@
// Bolt piece completion is available, and sqlite is not.
//go:build !noboltdb && (!cgo || nosqlite)
//go:build !noboltdb && (!cgo || nosqlite) && !wasm
// +build !noboltdb
// +build !cgo nosqlite
// +build !wasm
package storage

View File

@ -1,7 +1,7 @@
// Bolt piece completion is not available, and neither is sqlite.
//go:build (!cgo || nosqlite) && noboltdb
//go:build (!cgo || nosqlite) && (noboltdb || wasm)
// +build !cgo nosqlite
// +build noboltdb
// +build noboltdb wasm
package storage

View File

@ -1,5 +1,6 @@
// modernc.org/sqlite depends on modernc.org/libc which doesn't work for JS (and probably wasm but I
// think JS is the stronger signal).
//go:build cgo && !nosqlite
// +build cgo,!nosqlite

View File

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package sqliteStorage
import (

View File

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package sqliteStorage
import (