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

go: support passing arbitrary linker flags #17440

Closed
Tracked by #17447
tdyas opened this issue Nov 2, 2022 · 0 comments · Fixed by #17697
Closed
Tracked by #17447

go: support passing arbitrary linker flags #17440

tdyas opened this issue Nov 2, 2022 · 0 comments · Fixed by #17697
Labels
backend: Go Go backend-related issues

Comments

@tdyas
Copy link
Contributor

tdyas commented Nov 2, 2022

go supports passing arbitrary linker flags to go tool link invocations via a -ldflags argument. Pants should support this feature.

Model as fields on go_binary and go_package (for tests) that set additional linker flags to use with defaults coming from option(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Go Go backend-related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant