aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/cpu/cpu_wasm.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/sys/cpu/cpu_wasm.go')
-rw-r--r--vendor/golang.org/x/sys/cpu/cpu_wasm.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/cpu/cpu_wasm.go b/vendor/golang.org/x/sys/cpu/cpu_wasm.go
new file mode 100644
index 0000000..384787e
--- /dev/null
+++ b/vendor/golang.org/x/sys/cpu/cpu_wasm.go
@@ -0,0 +1,17 @@
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build wasm
6
7package cpu
8
9// We're compiling the cpu package for an unknown (software-abstracted) CPU.
10// Make CacheLinePad an empty struct and hope that the usual struct alignment
11// rules are good enough.
12
13const cacheLineSize = 0
14
15func initOptions() {}
16
17func archInit() {}