Skip to content

Buildifier warns about lack of rules_cc; rules_cc says you don't have to use it #923

@GMNGeoffrey

Description

@GMNGeoffrey

native-cc: Function "cc_library" is not global anymore and needs to be loaded from "@rules_cc//cc:defs.bzl". (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-cc)

There is no need to use rules from this repository just yet. If you want to use rules_cc anyway, add the following to your WORKSPACE file
https://github.com/bazelbuild/rules_cc#getting-started

These are clearly not compatible. In addition, the instruction to add rules_cc to your WORKSPACE file seem to be not accurate based on bazelbuild/bazel#8743 (comment).

Please make the tools in the ecosystem and their documentation consistent.

Cross-posted as bazelbuild/rules_cc#92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions