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 recompiling the standard library #17839

Closed
Tracked by #17447
tdyas opened this issue Dec 18, 2022 · 1 comment
Closed
Tracked by #17447

go: support recompiling the standard library #17839

tdyas opened this issue Dec 18, 2022 · 1 comment
Labels
backend: Go Go backend-related issues

Comments

@tdyas
Copy link
Contributor

tdyas commented Dec 18, 2022

Some use cases for go require support for recompiling the standard library. For example, the compiler option added for fuzz testing (as described in #16609) is applied to the whole standard library as well as the user code. There is no pre-built package archives for that case like there are for the race detector case.

See https://github.com/golang/go/blob/0b2ad1d815ea8967c49b32d848b2992d0c588d88/src/cmd/go/internal/test/test.go#L791-L813 for an example in the fuzz case of go test enabling "fuzz instrumentation" of packages including standard library packages (with the exclusions listed in that code snippet).

A solution for this issue would solve the fuzz use case but also cross-compiling the standard library for other platforms.

@tdyas
Copy link
Contributor Author

tdyas commented Jan 29, 2023

This is implemented as of #17914 landing on main which now always builds Go SDK packages from scratch without relying on the prebuilt package archives.

@tdyas tdyas closed this as completed Jan 29, 2023
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

No branches or pull requests

1 participant