Skip to content

Mark tags to bazel targets #1072

Description

@hcoona

Is your feature request related to a problem?

The project could build with GCC4.8 + CMake but failed to build with GCC4.8+Bazel. I cannot understand it although I know the higher version of GRPC could not compile with GCC4.8.

I think most of the core components rely on nothing than some extremely basic libraries such as abseil, gsl, gtest & google benchmark. We at least should support bazel build for these targets.

Describe the solution you'd like

I'd like to mark the bazel targets with tags, so we can easily to exclude some components. For example, excluding OTLP would significantly simplify dependencies.

** Example **

cc_test(
    name = "otlp_recordable_test",
    srcs = ["test/otlp_recordable_test.cc"],
    deps = [
        ":otlp_recordable",
        "@com_google_googletest//:gtest_main",
    ],
    tags = ["otlp"],
)
bazel build //... --build_tag_filters=-otlp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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