Skip to content

@bazel_tools//tools/cpp/... or @rules_cc//cc/compiler/... ? #546

@dsharlet

Description

@dsharlet

I work on a project that is a dependency of several other projects. I've been able to get this project successfully building on windows with bazel, using @rules_cc//cc/compiler:clang-cl as a condition to select on.

However, one of our dependencies appears to make a custom toolchain, with @bazel_tools//tools/cpp:clang-cl as its constraint. I tried to simply select on either one: google/XNNPACK@dc05a09 But that doesn't seem to be working either. (The dependency's build is hard for me to reproduce, so it's difficult to troubleshoot exactly what the problem is.)

Maybe @rules_cc//cc/compiler:x being true should also cause @bazel_tools//tools/cpp:x to be true? Or is that already the case, and my problem is elsewhere?

Is one of these deprecated, or will be deprecated at some point?

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