]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: use linkerFlagSupported to check -Qunused-arguments
authorTobias Klauser <tklauser@distanz.ch>
Fri, 26 Mar 2021 10:00:40 +0000 (11:00 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 29 Mar 2021 08:11:13 +0000 (08:11 +0000)
commit565e70fcefd63c1f57989a0f794bf7c8bb4cf5ec
treea967b54ac7494e736019f2fd64bafb18180a8dd0
parent6f90ee36e90cb6a6adfd29ee51f0ef8f7e507003
cmd/link/internal/ld: use linkerFlagSupported to check -Qunused-arguments

Rather than checking the linker name or its path for the string "clang",
use linkerFlagSupported to determine whether the -Qunused-arguments flag
may be passed to the linker.

Fixes #45241

Change-Id: I4c1e4d4ecba4cf5823e8f39cfda5d20404ebf513
Reviewed-on: https://go-review.googlesource.com/c/go/+/304692
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go