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: add -compiler flag to clean #7302

Closed
mwhudson opened this issue Feb 11, 2014 · 4 comments
Closed

cmd/go: add -compiler flag to clean #7302

mwhudson opened this issue Feb 11, 2014 · 4 comments

Comments

@mwhudson
Copy link
Contributor

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Install a library using gccgo as the compiler, e.g. go install -compiler gccgo
launchpad.net/gnuflag
2. Run go clean -i launchpad.net/gnuflag

What is the expected output?

$GOPATH/pkg/gccgo_$GOOS_$GOARCH/launchpad.net/libgnuflag.a should have been deleted.

What do you see instead?

$GOPATH/pkg/gccgo_$GOOS_$GOARCH/launchpad.net/libgnuflag.a has not been deleted.

Which compiler are you using (5g, 6g, 8g, gccgo)?

gccgo

Which operating system are you using?

Ubuntu Trusty

Which version are you using?  (run 'go version')

go version devel +7abe32ccffb1 Wed Jan 22 15:55:56 2014 -0800 linux/amd64

Please provide any additional information below.

If you build the go tool with gccgo, go clean does remove the artefact so it's possible
that instead of go clean removing gccgo built things by default, go clean should take a
-compiler gccgo flag like build, install etc to know where to look.
@davecheney
Copy link
Contributor

Comment 1:

Labels changed: added release-go1.3, repo-gccgo.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented May 9, 2014

Comment 3:

clean -i is working as intended. It removes what go install would create, not everything
every possible go install would create. It doesn't remove things for other architectures
or operating systems and should also not remove things for other compilers.
However, clean should accept -compiler so that you can remove what go install -compiler
installs.

Labels changed: added release-none, removed release-go1.3.

@gopherbot
Copy link

Comment 4:

CL https://golang.org/cl/99130043 mentions this issue.

@rsc
Copy link
Contributor

rsc commented May 9, 2014

Comment 5:

This issue was closed by revision 0f52fdb.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants