Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

doesn't have provider 'cc' error with bazel-0.25.0 #25

@soonho-tri

Description

@soonho-tri

compile_flags = (compiler_options +
target.cc.compile_flags +
(ctx.rule.attr.copts if "copts" in dir(ctx.rule.attr) else []))

It's from the line 129, target.cc.compile_flags, which is now deprecated (from bazel-0.25.0). Please see bazelbuild/bazel#7036 for details. I think a solution is to use get_compile_flags(target) instead of target.cc.compile_flags. AFAIK, get_compile_flags is not included in bazel so we need to copy/paste it from https://gist.github.com/oquenchil/7e2c2bd761aa1341b458cc25608da50c.

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