]> Cypherpunks repositories - gostls13.git/commit
cmd/link: support .def file with MSVC clang toolchain
authorCherry Mui <cherryyz@google.com>
Thu, 2 Oct 2025 22:24:12 +0000 (18:24 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 3 Oct 2025 13:30:28 +0000 (06:30 -0700)
commitadce7f196e6ac6d22e9bc851efea5f3ab650947c
tree88c66a0378dda3cd6a891f6cd9bad0809c86abcb
parentd5b950399de01a0e28eeb48d2c8474db4aad0e8a
cmd/link: support .def file with MSVC clang toolchain

lld-link supports .def file, but requires a "-def:" (or "/def:")
flag. (MinGW linker, on the other hand, requires no flag.) Pass
the flag when using MSVC-based toolchain.

CL originally authored by Chressie Himpel.

Change-Id: I8c327ab48d36b0bcbb1d127cff544ffdb06be38e
Reviewed-on: https://go-review.googlesource.com/c/go/+/708716
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Chressie Himpel <chressie@google.com>
src/cmd/link/internal/ld/lib.go