Skip to content

Add annotation_selects tag class #3541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

finn-ball
Copy link
Contributor

@finn-ball finn-ball commented Aug 4, 2025

Adds an annotation_select tag class.

This annotation will add common environment variables:

crate.annotation(
    crate = "foo",
    build_scipt_data = [
        "@bar",
    ],
    build_script_env = {
        "BAR": "bar",
    },
)

This annotation will append a platform dependent select statement to the above variables:

crate.annotation_select(
    crate = "foo",
    triples = ["x86_64-unknown-linux-gnu"],
    build_script_data = [
        "@baz",
    ],
    build_script_env = {
        "BAZ": "baz",
    },
)

Attempts to improve #3511

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant