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/build: expose defaultCC #10916

Closed
davecheney opened this issue May 20, 2015 · 3 comments
Closed

go/build: expose defaultCC #10916

davecheney opened this issue May 20, 2015 · 3 comments

Comments

@davecheney
Copy link
Contributor

defaultCC is written by 'cmd/dist' into cmd/go/zdefaultcc.go and cmd/cgo/zdefaultcc.go, but neither of those locations can be used because (a) they are commands (b) the value is not exported.

Could defaultCC be written as DefaultCC into go/build so it can be reused by other tools that need access to the C compiler that the Go install was installed with.

@minux
Copy link
Member

minux commented May 20, 2015 via email

@ianlancetaylor
Copy link
Contributor

Simply adding DefaultCC is the wrong approach because in principle we want to have a different default compiler for different GOARCH/GOOS values. Closing this out, but reopen if you want an approach different from calling "go env CC".

@davecheney
Copy link
Contributor Author

That's fair. I'll find another way to do it.

On Wed, Jun 3, 2015 at 10:57 AM, Ian Lance Taylor notifications@github.com
wrote:

Simply adding DefaultCC is the wrong approach because in principle we want
to have a different default compiler for different GOARCH/GOOS values.
Closing this out, but reopen if you want an approach different from calling
"go env CC".


Reply to this email directly or view it on GitHub
#10916 (comment).

@golang golang locked and limited conversation to collaborators Jun 25, 2016
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