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

Why adding a line of load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") ? #128

Closed
wuhy08 opened this issue Nov 2, 2019 · 2 comments
Assignees

Comments

@wuhy08
Copy link

wuhy08 commented Nov 2, 2019

I am new to Bazel and I am going thru the tutorial.

I see that almost all BUILD files added a line of load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library"). I wonder what is the reason?

Build will fail with this line added but succeed without this line. Bazel version # is 0.26.0.

It seems to me that the BUILD file will explicitly load the rule_cc, is this required by newer version of Bazel?

@hlopko
Copy link
Member

hlopko commented Nov 25, 2019

Yup this is because of incoming incompatible change bazelbuild/bazel#8743.

Right now Bazel works both ways so people can forward-migrate. Eventually when the flag is flipped load statements will be required.

@hlopko hlopko closed this as completed Nov 25, 2019
@nettyxiong
Copy link

mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants