%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/go/src/cmd/go/testdata/script/
Upload File :
Create Path :
Current File : //usr/local/go/src/cmd/go/testdata/script/build_darwin_cc_arch.txt

# Test that we pass -arch flag to C compiler on Darwin (issue 43692).

[!darwin] skip
[!cgo] skip

# clear CC, in case user sets it
env CC=

env CGO_ENABLED=1

env GOARCH=amd64
go build -n -x c.go
stderr 'clang.*-arch x86_64'

env GOARCH=arm64
go build -n -x c.go
stderr 'clang.*-arch arm64'

-- c.go --
package main

import "C"

func main() {}

Zerion Mini Shell 1.0