小编vqx*_*x46的帖子

如何从 linux 交叉编译到 darwin 386?

我正在尝试使用以下方法从 linux 编译:

GOOS=darwin GOARCH=386 CGO_ENABLED=0 go build .
Run Code Online (Sandbox Code Playgroud)

但它抛出错误:

cmd/go: unsupported GOOS/GOARCH pair darwin/386
Run Code Online (Sandbox Code Playgroud)

我到处看,但似乎应该支持 darwin/386
(编译 windows/386 和 linux/386 工作正常)
(编译 darwin/amd64 工作正常)

(我什至在 Windows 上试过,但错误是一样的)

我错过了什么?

compilation darwin cross-compiling go i386

0
推荐指数
1
解决办法
398
查看次数

标签 统计

compilation ×1

cross-compiling ×1

darwin ×1

go ×1

i386 ×1