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
gccgo: GOARCH is not validated #23566
Comments
/cc @ianlancetaylor |
In effect, I'm not sure what to do here. |
@ianlancetaylor if it were ignored, then why I get an error when using If you see the two commands I reported, I see some inconsistency there. First an error is reported (rightfully, I did not build 386 Go standard library there), then when |
Hmmm, you're right, |
Oh, interesting code you dug up. Thanks for the pointer; I see there also https://golang.org/src/cmd/go/internal/work/build.go#L3341 I can give this a better look later, I seem to understand it is on purpose leaky as it can't be too tight on |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
Failure when the provided
GOARCH
is invalid.What did you see instead?
It builds for the default
GOARCH
.If a valid architecture is provided it tries to build that one, failing if the standard library is not built for it. If a bogus one is provided, no errors are returned and the default one is picked instead.
The text was updated successfully, but these errors were encountered: