Skip to content

Commit d32e6e3

Browse files
committed
windows: add empty.s to fix build with Go 1.11 and earlier
CL 199519 broke the build with Go 1.11. Even though this is not an officially supported release anymore, people still seem to rely on it and the fix is easy enough and won't break anyone using newer, supported Go versions. Change-Id: I632d6840bc1f49c01c372727c9a55d2daf98f4a8 Reviewed-on: https://go-review.googlesource.com/c/sys/+/206357 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent c1f4481 commit d32e6e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

windows/empty.s

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
// +build !go1.12
6+
7+
// This file is here to allow bodyless functions with go:linkname for Go 1.11
8+
// and earlier (see https://golang.org/issue/23311).

0 commit comments

Comments
 (0)