Skip to content

Commit

Permalink
Remove wasm build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Dec 5, 2023
1 parent 5e3d938 commit 2878527
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 46 deletions.
1 change: 0 additions & 1 deletion internal/endtoend/case_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type Exec struct {
Contexts []string `json:"contexts"`
Process string `json:"process"`
OS []string `json:"os"`
WASM bool `json:"wasm"`
Env map[string]string `json:"env"`
}

Expand Down
5 changes: 0 additions & 5 deletions internal/endtoend/endtoend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (

"github.com/sqlc-dev/sqlc/internal/cmd"
"github.com/sqlc-dev/sqlc/internal/config"
"github.com/sqlc-dev/sqlc/internal/ext/wasm"
"github.com/sqlc-dev/sqlc/internal/opts"
)

Expand Down Expand Up @@ -177,10 +176,6 @@ func TestReplay(t *testing.T) {
}
}

if args.WASM && !wasm.Enabled() {
t.Skipf("wasm support not enabled")
}

if len(args.OS) > 0 {
if !slices.Contains(args.OS, runtime.GOOS) {
t.Skipf("unsupported os: %s", runtime.GOOS)
Expand Down

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions internal/ext/wasm/nowasm.go

This file was deleted.

11 changes: 0 additions & 11 deletions internal/ext/wasm/wasm.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//go:build !nowasm && cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64))

// The above build constraint is based of the cgo directives in this file:
// https://github.com/bytecodealliance/wasmtime-go/blob/main/ffi.go
package wasm

import (
Expand Down Expand Up @@ -33,13 +29,6 @@ import (
"github.com/sqlc-dev/sqlc/internal/plugin"
)

func Enabled() bool {
return true
}

// This version must be updated whenever the wasmtime-go dependency is updated
const wasmtimeVersion = `v14.0.0`

func cacheDir() (string, error) {
cache := os.Getenv("SQLCCACHE")
if cache != "" {
Expand Down

0 comments on commit 2878527

Please sign in to comment.