cmd/go: pass -arch to GOOS=darwin host compiler, linker #43692
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
See golang/vscode-go#1087.
The root cause is confusion about the Mac toolchain expecting x86 vs arm binaries.
We should be able to fix the confusion by forcing when GOOS=darwin the use of
-arch arm64
or-arch x86_64
(not sure the second is spelled correctly), to match GOARCH.This would mean adding the flags in the C compiler invocation and also adding them to the -extld passed to the Go linker.
The text was updated successfully, but these errors were encountered: