mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
src: make use of runtime.GOOS, GOARCH instead of syscall.OS, ARCH
R=rsc, r CC=golang-dev https://golang.org/cl/5545048
This commit is contained in:
parent
5f7337769c
commit
92c8df46c6
35 changed files with 51 additions and 83 deletions
|
|
@ -7,6 +7,7 @@
|
|||
package syscall
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
|
|||
// guard against side effects of shuffling fds below.
|
||||
fd := append([]int(nil), attr.Files...)
|
||||
|
||||
darwin := OS == "darwin"
|
||||
darwin := runtime.GOOS == "darwin"
|
||||
|
||||
// About to call fork.
|
||||
// No more allocation or calls of non-assembly functions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue