mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
Avoids each GOARCH having to define an empty doinit for GOOS=linux Change-Id: Ic7cea1be4a35c31593c4f867478194b82dd53613 Reviewed-on: https://go-review.googlesource.com/c/sys/+/206859 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
14 lines
395 B
Go
14 lines
395 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// 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.
|
|
// Make CacheLinePad an empty struct and hope that the usual struct alignment
|
|
// rules are good enough.
|
|
|
|
const cacheLineSize = 0
|