Skip to content

Commit 2878527

Browse files
committed
Remove wasm build tags
1 parent 5e3d938 commit 2878527

File tree

6 files changed

+0
-46
lines changed

6 files changed

+0
-46
lines changed

internal/endtoend/case_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ type Exec struct {
2222
Contexts []string `json:"contexts"`
2323
Process string `json:"process"`
2424
OS []string `json:"os"`
25-
WASM bool `json:"wasm"`
2625
Env map[string]string `json:"env"`
2726
}
2827

internal/endtoend/endtoend_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616

1717
"github.com/sqlc-dev/sqlc/internal/cmd"
1818
"github.com/sqlc-dev/sqlc/internal/config"
19-
"github.com/sqlc-dev/sqlc/internal/ext/wasm"
2019
"github.com/sqlc-dev/sqlc/internal/opts"
2120
)
2221

@@ -177,10 +176,6 @@ func TestReplay(t *testing.T) {
177176
}
178177
}
179178

180-
if args.WASM && !wasm.Enabled() {
181-
t.Skipf("wasm support not enabled")
182-
}
183-
184179
if len(args.OS) > 0 {
185180
if !slices.Contains(args.OS, runtime.GOOS) {
186181
t.Skipf("unsupported os: %s", runtime.GOOS)

internal/endtoend/testdata/wasm_plugin_sqlc_gen_greeter/exec.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

internal/endtoend/testdata/wasm_plugin_sqlc_gen_test/exec.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

internal/ext/wasm/nowasm.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

internal/ext/wasm/wasm.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
//go:build !nowasm && cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64))
2-
3-
// The above build constraint is based of the cgo directives in this file:
4-
// https://github.com/bytecodealliance/wasmtime-go/blob/main/ffi.go
51
package wasm
62

73
import (
@@ -33,13 +29,6 @@ import (
3329
"github.com/sqlc-dev/sqlc/internal/plugin"
3430
)
3531

36-
func Enabled() bool {
37-
return true
38-
}
39-
40-
// This version must be updated whenever the wasmtime-go dependency is updated
41-
const wasmtimeVersion = `v14.0.0`
42-
4332
func cacheDir() (string, error) {
4433
cache := os.Getenv("SQLCCACHE")
4534
if cache != "" {

0 commit comments

Comments
 (0)