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

Allow rust_binary to depend on cc_library #83

Merged
merged 1 commit into from
Apr 12, 2018
Merged

Allow rust_binary to depend on cc_library #83

merged 1 commit into from
Apr 12, 2018

Conversation

neachdainn
Copy link
Contributor

Both the documentation and the error message say that it is possible for rust_binary targets to depend on cc_library targets. Currently, trying to do so results in an error.

I believe this one small change is all that is necessary. I have tested this with my own project and it appears to work but I am unfamiliar enough with Bazel and Skylark that I am not 100% certain that it is correct.

The error message and the documentation both say this is possible. Light
testing seems to show that this is the only change required.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@neachdainn
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@mfarrugi
Copy link
Collaborator

Looks like it was an oversight in #34, lgtm.

@acmcarther ping :)

@acmcarther
Copy link
Collaborator

Whoops, I guess this was missed in the original review. Lucky that the error immediately indicated that this was a bug!

@neachdainn Thanks for the quick fix!
@mfarrugi Thanks for the ping!

LGTM

@acmcarther acmcarther merged commit b07eca4 into bazelbuild:master Apr 12, 2018
acmcarther pushed a commit that referenced this pull request May 23, 2018
* Add support for depending on shared libraries on linux.

* Use portable bash for TMPDIR check.

* Move example 'matrix' to 'ffi/rust_calling_c'.

* Use toolchain to get dylib/staticlib file extensions.

* Skip dylib test targets on osx.

* Simplify presubmit config.

* Fix skipped labels.

* Allow `rust_binary` to depend on `cc_library` (#83)

The error message and the documentation both say this is possible. Light
testing seems to show that this is the only change required.

* Skip just rpath setup on non-linux.

* Address review comments.

* Attempt to clarify _setup_deps

* Adjust provider test for field changes.

* Actually provide correct patterns in test

* Undo removing skipping of os check

* Add FreeBSD toolchain. (#85)

* Add os field to freebsd toolchain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants