]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo: generate Windows import libraries for clang
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 11 Jun 2021 15:53:29 +0000 (17:53 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 13 Jun 2021 23:53:43 +0000 (23:53 +0000)
commit14305bf0b9ab87bcaca11416ab61e7a4ba09690d
treeceb62a53b3a52c7e761e9e9c077f03195d188e6c
parent24cff0f0444793be81062684c478a3f7ca955499
misc/cgo: generate Windows import libraries for clang

LLD won't import a .dll directly and instead requires an import library.
So generate these using -out-implib, the same way as was done in CL
312046, where it makes sense, and elsewhere build the import library
using a def file. We can't use -out-implib all the time, because the
output file gets overwritten each time the linker is called, rather than
merged.

Updates #46502.

Change-Id: Iefe54cb6c576004b83b1039ba673881b8640423d
Reviewed-on: https://go-review.googlesource.com/c/go/+/327211
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testcshared/cshared_test.go