From c663848e9a16c3f7dcfaea95e7ea787d9543cb30 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 28 Aug 2020 18:01:49 +0200 Subject: [PATCH] unix: remove darwin direct syscall special case from mksyscall.go Since CL 250437 this package no longer supports non-libc, direct syscalls. Thus the corresponding special cases can be removed from the generating mksyscall.go program. Change-Id: I54be144de8ffd483f10c7b3a69b0761b83542c55 Reviewed-on: https://go-review.googlesource.com/c/sys/+/251318 Run-TryBot: Tobias Klauser Reviewed-by: Matt Layher TryBot-Result: Gobot Gobot --- unix/mksyscall.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/unix/mksyscall.go b/unix/mksyscall.go index 9e540cc8..f6678425 100644 --- a/unix/mksyscall.go +++ b/unix/mksyscall.go @@ -121,7 +121,7 @@ func main() { } libc := false - if goos == "darwin" && (strings.Contains(buildTags(), ",go1.12") || strings.Contains(buildTags(), ",go1.13")) { + if goos == "darwin" { libc = true } trampolines := map[string]bool{} @@ -153,11 +153,6 @@ func main() { } funct, inps, outps, sysname := f[2], f[3], f[4], f[5] - // ClockGettime doesn't have a syscall number on Darwin, only generate libc wrappers. - if goos == "darwin" && !libc && funct == "ClockGettime" { - continue - } - // Split argument lists on comma. in := parseParamList(inps) out := parseParamList(outps)