From 584f3b12f43e1e55248c90e84804777009eed0a4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 7 Mar 2019 17:25:44 -0800 Subject: [PATCH] cpu: add build tag to cpu_wasm.go Fixes the build for Go versions before 1.11. Fixes golang/go#30668 Change-Id: I0dfb2eafcbcbe7e466a3b0b5d20656be3e6f4982 Reviewed-on: https://go-review.googlesource.com/c/sys/+/166137 Run-TryBot: Ian Lance Taylor Run-TryBot: Bryan C. Mills Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- cpu/cpu_wasm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/cpu_wasm.go b/cpu/cpu_wasm.go index 108d9e69..bd9bbda0 100644 --- a/cpu/cpu_wasm.go +++ b/cpu/cpu_wasm.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. +// +build wasm + package cpu // We're compiling the cpu package for an unknown (software-abstracted) CPU.