-
Notifications
You must be signed in to change notification settings - Fork 123
Support cc_binary #4
Comments
👍 |
@kelvinchan-google Is this on the roadmap? |
Thanks for the feature request. Unfortunately at this point, this isn't on the roadmap for 2017 due to the limited bandwidth of the Tulsi team. |
@adamhowardprice is the request about being about to edit the C++ code of this binary in XCode? |
I don't speak for Adam, but source-level navigation / debugging would be fantastic. Especially with fast builds thanks to bazel. |
Thanks. Is the following correct?
|
IMO they are both blockers |
We have C++ devs who currently work actively on our Core libraries in Xcode. They would need a way to keep doing this while building with Bazel. |
Also, to clarify, the critical adoption blocker above is having an I think the error we were hitting above was coming up simply because we had a cc_binary rule defined in our project somewhere, and Tulsi was parsing it. |
Would love to see support of cc_library/cc_binary/cc_test (on darwin). Our project includes a mix of types (an ios_application, ios_tests, and cc_tests that run on darwin) and right now we can't debug/edit/index/etc our cc_tests. |
As a workaround, try using either |
Given that Xcode 9 has new awesome refactoring support, any chance to get |
+1, would really love to have cc_library and cc_binary support for non-Apple applications as well, just to have XCode be usable as an IDE with Bazel rules. |
That, or someone can show me how to get the CLion bazel plugin working. But I would prefer Xcode 9. |
See bazelbuild/intellij#109 for some comments on getting CLion bazel plugin working on Mac. The simplest way is to use a custom toolchain with the crosstool_top build flag. |
So with c57a1c9 you should be able to use cc_binary/cc_library. Can folks give it a shot and see how it works for them? |
I am able to select the targets now, but at the "Generating build targets" stage, I get this error: The process succeeds if my target is cc_library. |
Sorry my bad, I was on the wrong branch in git. The project generates fine with this change. I don't know if other people will agree with this or not, but I found that the Tool type worked better for me, i.e. RuleEntry.swift:131 should be With the Application type, on trying to run my binary, I was getting an error that said that the [target name] could not be opened because I do not have permissions. I also changed the base SDK in the generated Xcode project to be macOS. Simple projects build fine, but complex projects have more issues. For example, the include attribute in cc_library rule does not seem to be respected so Xcode parser can not find the header files. Also, no symbol information in debug mode. I don't know how important people consider this to be. Thank you for looking into it and making it possible. 👍 |
Agreed with siddharthab: cc_binary needs to be marked as Symbol information in debug mode is really needed, too - probably related to this: bazelbuild/bazel#2537 |
Closing this due to the relevant changes in c57a1c9. If you're still seeing issues due to |
…elbuild#4) * Set is_dynamic based on apple_dynamic_framework_import rule kind * Also handle apple_framework_packaging and ios_framework rules
We tried to use Tulsi to generate an Xcode project for a C++ library to be built with Bazel, and it failed, with the error message “Unsupported target: cc_binary”. I hope this will be supported in the future.
The text was updated successfully, but these errors were encountered: