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: 'go build' ignores *.m files #6536
Labels
Comments
Compiling Objective-C by cgo succeeded: https://gist.github.com/hajimehoshi/6829595 and I tried separating the Objective-C source to another *.m file. |
The go tool only knows how to compile the following file types, by extension. http://golang.org/pkg/go/build/#Package objective-c is not one of those. |
https://code.google.com/p/go/source/browse/src/pkg/go/build/build.go#341 Apparently, the latest version suppots them. OK, thanks. |
I agree this is not going to happen for 1.2, but reopening in case we want to do it at some point in the future. It would help to know how many people are really interested in linking Objective C code into Go binaries. I assume that Objective C can present a C interface, so that calling Objective C code via cgo is possible in principle. Labels changed: added priority-later, removed priority-triage. Status changed to Thinking. |
Yep, I've just watched a lightning talk at GoCon Tokyo by the reporter of this issue where he demoed a hybrid Go/Objective C application that uses Cocoa to display a native OS X window. We should support this. I imagine it will become particularly useful when we can support darwin/arm. Status changed to Accepted. |
This issue was closed by revision 7861cd6. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: