mirror of
https://github.com/golang/go
synced 2024-11-22 13:04:44 -07:00
syscall: add const ARCH, analogous to OS
R=r CC=giles, golang-dev https://golang.org/cl/600041
This commit is contained in:
parent
a24f8144e4
commit
e153d3d818
@ -9,6 +9,7 @@ GOFILES=\
|
|||||||
errstr.go\
|
errstr.go\
|
||||||
exec.go\
|
exec.go\
|
||||||
syscall.go\
|
syscall.go\
|
||||||
|
syscall_$(GOARCH).go\
|
||||||
syscall_$(GOOS).go\
|
syscall_$(GOOS).go\
|
||||||
syscall_$(GOOS)_$(GOARCH).go\
|
syscall_$(GOOS)_$(GOARCH).go\
|
||||||
zerrors_$(GOOS)_$(GOARCH).go\
|
zerrors_$(GOOS)_$(GOARCH).go\
|
||||||
|
7
src/pkg/syscall/syscall_386.go
Normal file
7
src/pkg/syscall/syscall_386.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Copyright 2010 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.
|
||||||
|
|
||||||
|
package syscall
|
||||||
|
|
||||||
|
const ARCH = "386"
|
7
src/pkg/syscall/syscall_amd64.go
Normal file
7
src/pkg/syscall/syscall_amd64.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Copyright 2010 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.
|
||||||
|
|
||||||
|
package syscall
|
||||||
|
|
||||||
|
const ARCH = "amd64"
|
7
src/pkg/syscall/syscall_arm.go
Normal file
7
src/pkg/syscall/syscall_arm.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Copyright 2010 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.
|
||||||
|
|
||||||
|
package syscall
|
||||||
|
|
||||||
|
const ARCH = "arm"
|
Loading…
Reference in New Issue
Block a user