Skip to content

Give finer control over local/transitive defines in C++ rules #11369

Closed

Description

@oquenchil

There should be better support for defines in C++ removing logic which is platform-dependent and allowing to specify whether it should only be used locally or be propagated.

Related but for includes #6790

We should follow the design process for this: https://bazel.build/designs/

Activity

  1. added
    team-Rules-CPP
    help wanted
    on May 12, 2020
  2. changed the title [-]Give finer control over local/transitive includes and defines in C++ rules[/-] [+]Give finer control over local/transitive defines in C++ rules[/+] on May 12, 2020
  3. added
    P4
    on May 12, 2020
  4. oquenchil commented on May 12, 2020

    @oquenchil
    ContributorAuthor

    Support for this was actually added in August last year. One can use the attribute local_defines.

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

    P4help wantedteam-Rules-CPPtype: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions