Skip to content

Commit

Permalink
interp: fix build tags to allow wasm builds
Browse files Browse the repository at this point in the history
This commit changes package interp's build tags and filenames around to
allow building on WebAssembly (and potentially Plan 9).
  • Loading branch information
diamondburned committed Mar 18, 2023
1 parent ba9aa0b commit 1e04c5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions interp/os_windows.go → interp/os_notunix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright (c) 2017, Andrey Nering <andrey.nering@gmail.com>
// See LICENSE for licensing information

//go:build !unix
// +build !unix

package interp

import (
Expand Down
4 changes: 2 additions & 2 deletions interp/os_unix.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2017, Andrey Nering <andrey.nering@gmail.com>
// See LICENSE for licensing information

//go:build !windows
// +build !windows
//go:build unix
// +build unix

package interp

Expand Down
4 changes: 2 additions & 2 deletions interp/unix_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2019, Daniel Martí <mvdan@mvdan.cc>
// See LICENSE for licensing information

//go:build !windows
// +build !windows
//go:build unix
// +build unix

package interp_test

Expand Down

0 comments on commit 1e04c5b

Please sign in to comment.