diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-02-21 09:50:28 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-02-21 13:24:38 -0800 |
commit | a7eeaa48986f37badb78717e3c138a8d02bb01a6 (patch) | |
tree | aba52b475b168140ffd1f095821de8f21f11e818 | |
parent | ce09ab17ddd21f73ff2caf6eec3b0ee9b0e1a11e (diff) | |
download | gcc-a7eeaa48986f37badb78717e3c138a8d02bb01a6.zip gcc-a7eeaa48986f37badb78717e3c138a8d02bb01a6.tar.gz gcc-a7eeaa48986f37badb78717e3c138a8d02bb01a6.tar.bz2 |
runtime/internal/syscall: build dummy package if not Linux
Fixes libgo build on non-Linux systems.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/387134
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | libgo/go/runtime/internal/syscall/syscall_other.go | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 3c0380e..7455d01 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -20e74f9ef8206fb02fd28ce3d6e0f01f6fb95dc9 +aee8eddbfc3ef1b03353a060e79e7d668fb229e2 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/go/runtime/internal/syscall/syscall_other.go b/libgo/go/runtime/internal/syscall/syscall_other.go new file mode 100644 index 0000000..c0945ce --- /dev/null +++ b/libgo/go/runtime/internal/syscall/syscall_other.go @@ -0,0 +1,7 @@ +// Copyright 2022 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. + +//go:build !linux + +package syscall |