]> Cypherpunks.ru repositories - gostls13.git/commit
all: add GOOS=ios
authorCherry Zhang <cherryyz@google.com>
Wed, 16 Sep 2020 20:59:58 +0000 (16:59 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 23 Sep 2020 18:12:59 +0000 (18:12 +0000)
commita413908dd064de6e3ea5b8d95d707a532bd3f4c8
treeca1bb03a29fff2bb902aa015fe04fcd36988394d
parentbc320fc1f5bc5d6019e3d8d62aa32eac3417bb7f
all: add GOOS=ios

Introduce GOOS=ios for iOS systems. GOOS=ios matches "darwin"
build tag, like GOOS=android matches "linux" and GOOS=illumos
matches "solaris". Only ios/arm64 is supported (ios/amd64 is
not).

GOOS=ios and GOOS=darwin remain essentially the same at this
point. They will diverge at later time, to differentiate macOS
and iOS.

Uses of GOOS=="darwin" are changed to (GOOS=="darwin" || GOOS=="ios"),
except if it clearly means macOS (e.g. GOOS=="darwin" && GOARCH=="amd64"),
it remains GOOS=="darwin".

Updates #38485.

Change-Id: I4faacdc1008f42434599efb3c3ad90763a83b67c
Reviewed-on: https://go-review.googlesource.com/c/go/+/254740
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
99 files changed:
doc/install-source.html
misc/cgo/test/issue18146.go
misc/cgo/test/pkg_test.go
misc/cgo/test/sigaltstack.go
misc/cgo/test/test.go
misc/cgo/test/testx.go
misc/cgo/testcarchive/carchive_test.go
misc/cgo/testcshared/cshared_test.go
misc/cgo/testso/so_test.go
misc/cgo/testsovar/so_test.go
src/archive/tar/stat_unix.go
src/cmd/cgo/gcc.go
src/cmd/compile/internal/arm64/ggen.go
src/cmd/compile/internal/ssa/config.go
src/cmd/dist/build.go
src/cmd/dist/test.go
src/cmd/doc/doc_test.go
src/cmd/go/alldocs.go
src/cmd/go/go_test.go
src/cmd/go/internal/bug/bug.go
src/cmd/go/internal/help/helpdoc.go
src/cmd/go/internal/imports/build.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/work/build_test.go
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/init.go
src/cmd/internal/archive/archive_test.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/objabi/head.go
src/cmd/internal/objabi/util.go
src/cmd/internal/sys/supported.go
src/cmd/link/internal/ld/ar.go
src/cmd/link/internal/ld/config.go
src/cmd/link/internal/ld/outbuf_test.go
src/cmd/nm/nm_test.go
src/crypto/x509/root_darwin_ios_gen.go
src/crypto/x509/root_darwin_iosx.go [moved from src/crypto/x509/root_darwin_ios.go with 100% similarity]
src/debug/elf/file_test.go
src/go/build/build.go
src/go/build/build_test.go
src/go/build/syslist.go
src/go/build/syslist_test.go
src/internal/poll/read_test.go
src/internal/testenv/testenv.go
src/log/syslog/syslog_test.go
src/net/conf.go
src/net/dial_test.go
src/net/http/cgi/host.go
src/net/interface_unix_test.go
src/net/lookup_test.go
src/net/main_test.go
src/net/platform_test.go
src/net/sock_bsd.go
src/net/tcpsock_test.go
src/net/udpsock_test.go
src/net/writev_test.go
src/os/file_unix.go
src/os/os_test.go
src/os/path_test.go
src/os/removeall_test.go
src/path/filepath/path_test.go
src/runtime/debug/panic_test.go
src/runtime/internal/sys/gengoos.go
src/runtime/internal/sys/zgoos_aix.go
src/runtime/internal/sys/zgoos_android.go
src/runtime/internal/sys/zgoos_darwin.go
src/runtime/internal/sys/zgoos_dragonfly.go
src/runtime/internal/sys/zgoos_freebsd.go
src/runtime/internal/sys/zgoos_hurd.go
src/runtime/internal/sys/zgoos_illumos.go
src/runtime/internal/sys/zgoos_ios.go [new file with mode: 0644]
src/runtime/internal/sys/zgoos_js.go
src/runtime/internal/sys/zgoos_linux.go
src/runtime/internal/sys/zgoos_netbsd.go
src/runtime/internal/sys/zgoos_openbsd.go
src/runtime/internal/sys/zgoos_plan9.go
src/runtime/internal/sys/zgoos_solaris.go
src/runtime/internal/sys/zgoos_windows.go
src/runtime/internal/sys/zgoos_zos.go
src/runtime/malloc.go
src/runtime/mgcscavenge.go
src/runtime/mkpreempt.go
src/runtime/pprof/pprof_rusage.go
src/runtime/pprof/pprof_test.go
src/runtime/preempt_arm64.s
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/signal_unix.go
src/runtime/sigqueue.go
src/runtime/stack.go
src/runtime/tls_arm64.h
src/runtime/tls_arm64.s
src/syscall/exec_unix.go
src/syscall/sockcmsg_unix_other.go
src/syscall/syscall_bsd.go
src/syscall/syscall_unix.go
src/syscall/syscall_unix_test.go
src/time/tick_test.go
src/time/zoneinfo_darwin_arm64.go [moved from src/time/zoneinfo_ios.go with 96% similarity]