From fae0402fdeba8a7d3a2e9b97019aeef7e3fae930 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 27 Jun 2024 18:27:28 +0200 Subject: wasm-unknown: make sure the os package can be imported See: https://github.com/tinygo-org/tinygo/issues/4314 The os package isn't particularly useful on wasm-unknown, but just like on baremetal systems it's imported by a lot of packages so it should at least be possible to import this package. --- src/os/file_anyos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/file_anyos.go') diff --git a/src/os/file_anyos.go b/src/os/file_anyos.go index 0436d1222..1483f11c2 100644 --- a/src/os/file_anyos.go +++ b/src/os/file_anyos.go @@ -1,4 +1,4 @@ -//go:build !baremetal && !js +//go:build !baremetal && !js && !wasm_unknown // Portions copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style -- cgit v1.2.3