From deaec39323aced382a12ed0360fad03ad1dbb906 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 25 Sep 2022 20:15:12 +0200 Subject: [PATCH] cmd/go/internal/mmap: fix build for js/wasm Even though there isn't much point in building cmd/go for js/wasm given it relies on executing sub-processes, this change is trivial enough and makes cmd/go build for js/wasm again. Fixes #54219 Change-Id: I91e3adec0f31a4e261af89b4cc829711828ac2ed Reviewed-on: https://go-review.googlesource.com/c/go/+/433480 Auto-Submit: Tobias Klauser TryBot-Result: Gopher Robot Run-TryBot: Tobias Klauser Reviewed-by: Bryan Mills Reviewed-by: Dmitri Shuralyov --- src/cmd/go/internal/mmap/{mmap_plan9.go => mmap_other.go} | 2 ++ 1 file changed, 2 insertions(+) rename src/cmd/go/internal/mmap/{mmap_plan9.go => mmap_other.go} (92%) diff --git a/src/cmd/go/internal/mmap/mmap_plan9.go b/src/cmd/go/internal/mmap/mmap_other.go similarity index 92% rename from src/cmd/go/internal/mmap/mmap_plan9.go rename to src/cmd/go/internal/mmap/mmap_other.go index faa5d5fc66..d146a42216 100644 --- a/src/cmd/go/internal/mmap/mmap_plan9.go +++ b/src/cmd/go/internal/mmap/mmap_other.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build (js && wasm) || plan9 + package mmap import (