features: Fixes bug on implies attr on feature Fixes a bug where the implied attribute was not being expanding properly.
diff --git a/cc_toolchain/features/features.bzl b/cc_toolchain/features/features.bzl index 9f9d0ce..bd4e983 100644 --- a/cc_toolchain/features/features.bzl +++ b/cc_toolchain/features/features.bzl
@@ -63,7 +63,7 @@ name = ctx.label.name, enabled = ctx.attr.enabled, provides = ctx.attr.provides, - implies = [label.name for label in ctx.attr.implies], + implies = [target.label.name for target in ctx.attr.implies], flag_sets = flag_sets, ), ] @@ -176,6 +176,15 @@ ), ], )) + if injected_include_flags: + flag_sets.append(flag_set( + actions = ALL_CC_COMPILE_ACTION_NAMES, + flag_groups = [ + flag_group( + flags = injected_include_flags, + ), + ], + )) if linker_dir_flags or linker_flags or linker_runtime_path_flags: flag_sets.append(flag_set(