Skip to content

Commit

Permalink
Add extra_target
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi Lu committed Sep 21, 2024
1 parent 757dde6 commit d16a627
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aspect/intellij_info_impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,13 @@ def collect_cpp_info(target, ctx, semantics, ide_info, ide_info_file, output_gro
target_copts = []
if hasattr(ctx.rule.attr, "copts"):
target_copts += ctx.rule.attr.copts
extra_targets = []
if hasattr(ctx.rule.attr, "additional_compiler_inputs"):
extra_targets += ctx.rule.attr.additional_compiler_inputs
if hasattr(semantics, "cc") and hasattr(semantics.cc, "get_default_copts"):
target_copts += semantics.cc.get_default_copts(ctx)

target_copts = _do_starlark_string_expansion(ctx, "copt", target_copts)
target_copts = _do_starlark_string_expansion(ctx, "copt", target_copts, extra_targets)

compilation_context = target[CcInfo].compilation_context

Expand Down

0 comments on commit d16a627

Please sign in to comment.