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: if clang is called "cc", build.go fails to detect it #9108

Closed
gopherbot opened this issue Nov 16, 2014 · 2 comments
Closed

cmd/go: if clang is called "cc", build.go fails to detect it #9108

gopherbot opened this issue Nov 16, 2014 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by steve.wills:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What does 'go version' print?

go version go1.3.2 freebsd/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. build on a platform where where clang is called "cc"
2.
3.

What happened?

What should have happened instead?

Please provide any additional information below.

See:

https://code.google.com/p/go/source/browse/src/cmd/go/build.go#2104

        if strings.Contains(a[0], "clang") {

On platforms where clang is called "cc" (because it's the only compiler by
default), this code fails. In order to get clang detected properly I had to set CC=clang.
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added repo-main, release-go1.5.

@crawshaw
Copy link
Member

I believe this issue was duplicated as #10453 and fixed in 9340238.

@golang golang locked and limited conversation to collaborators Jul 11, 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

5 participants