212 esac |
212 esac |
213 if [ -n "$mksyscall" ]; then |
213 if [ -n "$mksyscall" ]; then |
214 if [ "$GOOSARCH" == "aix_ppc64" ]; then |
214 if [ "$GOOSARCH" == "aix_ppc64" ]; then |
215 # aix/ppc64 script generates files instead of writing to stdin. |
215 # aix/ppc64 script generates files instead of writing to stdin. |
216 echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; |
216 echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; |
217 elif [ "$GOOS" == "darwin" ]; then |
|
218 # 1.12 and later, syscalls via libSystem |
|
219 echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; |
|
220 # 1.13 and later, syscalls via libSystem (including syscallPtr) |
|
221 echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go"; |
|
222 elif [ "$GOOS" == "illumos" ]; then |
217 elif [ "$GOOS" == "illumos" ]; then |
223 # illumos code generation requires a --illumos switch |
218 # illumos code generation requires a --illumos switch |
224 echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go"; |
219 echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go"; |
225 # illumos implies solaris, so solaris code generation is also required |
220 # illumos implies solaris, so solaris code generation is also required |
226 echo "$mksyscall -tags solaris,$GOARCH syscall_solaris.go syscall_solaris_$GOARCH.go |gofmt >zsyscall_solaris_$GOARCH.go"; |
221 echo "$mksyscall -tags solaris,$GOARCH syscall_solaris.go syscall_solaris_$GOARCH.go |gofmt >zsyscall_solaris_$GOARCH.go"; |