New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/link: accepts nonsense ldflags #25085
Comments
The syntax |
Oh. That makes sense, I just didn't even consider that that syntax would apply to ldflags. I'm not sure what good it is, but it's not a bug. Thanks. |
Change https://golang.org/cl/109355 mentions this issue: |
Doesn't cause an error, see #25085. But we should fix it nonetheless. Change-Id: I7b6799e0a95475202cacefc3a7f02487e61bfd31 Reviewed-on: https://go-review.googlesource.com/109355 Reviewed-by: Heschi Kreinick <heschi@google.com>
Change https://golang.org/cl/142003 mentions this issue: |
I don't think this should succeed:
I haven't checked the code, but from strace it looks like go build is swallowing ldflags that don't start with a
-
.The text was updated successfully, but these errors were encountered: