Skip to content
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/go: -ldflags not applied when linking a test #22994

Closed
ianlancetaylor opened this issue Dec 5, 2017 · 1 comment
Closed

cmd/go: -ldflags not applied when linking a test #22994

ianlancetaylor opened this issue Dec 5, 2017 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Milestone

Comments

@ianlancetaylor
Copy link
Contributor

This will run the linker with -v:

go build -ldflags=all=-v

This will not:

go test -ldflags=all=-v

I haven't been able to find a way to get cmd/go to set -v when linking a test.

CC @rsc

@ianlancetaylor ianlancetaylor added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker labels Dec 5, 2017
@ianlancetaylor ianlancetaylor added this to the Go1.10 milestone Dec 5, 2017
@gopherbot
Copy link

Change https://golang.org/cl/83879 mentions this issue: cmd/go: apply same per-package flags to compile and link of test

@golang golang locked and limited conversation to collaborators Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Projects
None yet
Development

No branches or pull requests

2 participants