From 29d3054918083f116b39f0da0262ca12377605ef Mon Sep 17 00:00:00 2001 From: Adam Benhassen Date: Fri, 13 Sep 2024 10:21:00 +0200 Subject: [PATCH] update --- src/runtime/cgo_musl_linux.go | 12 ------------ src/runtime/os_linux.go | 3 +++ 2 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 src/runtime/cgo_musl_linux.go diff --git a/src/runtime/cgo_musl_linux.go b/src/runtime/cgo_musl_linux.go deleted file mode 100644 index 470dfd64173..00000000000 --- a/src/runtime/cgo_musl_linux.go +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2024 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 runtime - -import "unsafe" - -//go:linkname _cgo_is_musl _cgo_is_musl -var _cgo_is_musl unsafe.Pointer diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index b6ad4a49504..3995db43e7f 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -368,6 +368,9 @@ func goenvs() { goenvs_unix() } +//go:linkname _cgo_is_musl _cgo_is_musl +var _cgo_is_musl unsafe.Pointer + // Called to do synchronous initialization of Go code built with // -buildmode=c-archive or -buildmode=c-shared. // None of the Go runtime is initialized.