]> Cypherpunks repositories - gostls13.git/commit
cmd/go: handle escapes in pkg-config ldflags output
authorzlasd <zlasd@hotmail.com>
Thu, 9 Feb 2023 14:03:45 +0000 (14:03 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 10 Feb 2023 21:45:51 +0000 (21:45 +0000)
commit8491fd311c5d4f38fda026129709306ab4787e87
treef329c4f9ec8b99250ee8d991c3557ae63d935d04
parentf0cb44a7736df649cdb5c7b3dfe8e270ae691626
cmd/go: handle escapes in pkg-config ldflags output

#16455 handled escapes in pkg-config output but only for cflags. The fix
for #41400 left a note that we don't need to parse quotes and unescapes,
but it is still necessary to handle spaces in pkg-config output. As cflags
has already been processed correctly, we apply the same logic to ldflags
here.

Fixes #35262

Change-Id: Id01d422b103780f67f89e99ff1df0d8f51a7a137
GitHub-Last-Rev: c67e5112130fa008397cfd0bc03e1de58201da86
GitHub-Pull-Request: golang/go#58429
Reviewed-on: https://go-review.googlesource.com/c/go/+/466875
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/go/go_test.go
src/cmd/go/internal/work/exec.go