ada_feature

Rules

ada_feature

load("@rules_ada//ada/toolchains:feature.bzl", "ada_feature")

ada_feature(name, args, feature_name)

A named set of arguments that can be toggled per target.

A toolchain lists the features it understands in known_features and the ones on by default in enabled_features. Targets add or remove them with the common features attribute (features = ["-static_libgcc"]), and --features applies globally. The arguments of enabled features are emitted after the toolchain's own args, in known_features order.

ada_feature(
    name = "static_libgcc",
    feature_name = "static_libgcc",
    args = [":static_libgcc_flags"],
)

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
argsada_args emitted while the feature is enabled.List of labelsoptional[]
feature_nameThe name used in features attributes and --features.Stringrequired