aboutsummaryrefslogtreecommitdiff
path: root/src/sync
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-05-12 17:55:42 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2021-05-13 09:12:17 +0000
commit2c76a6f7f85365cefb5200b2b3408fd6bd421b3d (patch)
treea07fe5b86d2d5d1d9dd66c22b138704bada51805 /src/sync
parent6db7480f5973ced97dfb08f949889e2ff108a492 (diff)
downloadgo-2c76a6f7f85365cefb5200b2b3408fd6bd421b3d.tar.gz
go-2c76a6f7f85365cefb5200b2b3408fd6bd421b3d.zip
all: add //go:build lines to assembly files
Don't add them to files in vendor and cmd/vendor though. These will be pulled in by updating the respective dependencies. For #41184 Change-Id: Icc57458c9b3033c347124323f33084c85b224c70 Reviewed-on: https://go-review.googlesource.com/c/go/+/319389 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/sync')
-rw-r--r--src/sync/atomic/asm.s1
-rw-r--r--src/sync/atomic/race.s1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/sync/atomic/asm.s b/src/sync/atomic/asm.s
index f86726f3a1..7b8c9b9430 100644
--- a/src/sync/atomic/asm.s
+++ b/src/sync/atomic/asm.s
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build !race
// +build !race
#include "textflag.h"
diff --git a/src/sync/atomic/race.s b/src/sync/atomic/race.s
index fd6ca22700..0866487cc7 100644
--- a/src/sync/atomic/race.s
+++ b/src/sync/atomic/race.s
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build race
// +build race
// This file is here only to allow external functions.