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

Fix CcDep info related to rust_test #379

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

GregBowyer
Copy link
Contributor

This is a small fix I discovered where a staticlib or cdylib claims to export CcInfo for test crates.

Instead of mapping this all the way through (I am not sure what depending on a rust_test would mean) we just ignore / disallow CcInfo for test contexts.

Copy link
Collaborator

@dfreese dfreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor issue that's causing the tests to fail, otherwise LGTM

@@ -2,3 +2,13 @@
pub extern fn my_favorite_number() -> i32 {
4
}

#[test]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[test]
#[cfg(test)]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops good catch!

@dfreese dfreese merged commit 8cfa049 into bazelbuild:master Jul 23, 2020
@dfreese
Copy link
Collaborator

dfreese commented Jul 23, 2020

Thanks!

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.

None yet

3 participants