]> Cypherpunks repositories - gostls13.git/commit
cmd/link, cmd/dist, internal/platform: consolidate c-archive support
authorIan Lance Taylor <iant@golang.org>
Sun, 29 Jan 2023 04:05:53 +0000 (20:05 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 31 Jan 2023 16:53:53 +0000 (16:53 +0000)
commit43115ff094be30b7a3c45eaf82ee6d257f3aa6c6
tree9465ee671ee41ef4f6fe5dacacf3884b30cbde7b
parent5c6d7322004330b58ea40ca9335dd9fb81f51f50
cmd/link, cmd/dist, internal/platform: consolidate c-archive support

Make all the tests for whether -buildmode=c-archive is supported consistent.
Base this on the historical code, on whether cmd/compile supports -shared,
and whether cmd/link permits the mode.

Change-Id: Ib996546906f698ade4c32b8e6c705838e4ad4b90
Reviewed-on: https://go-review.googlesource.com/c/go/+/463984
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/dist/test.go
src/cmd/link/internal/ld/config.go
src/internal/platform/supported.go