Skip to content

Commit

Permalink
Enable more objc rule attrs to work with --compile_one_dependency
Browse files Browse the repository at this point in the history
These were (inadvertently?) different than the native rules'
attributes, which worked with --compile_one_dependency.

PiperOrigin-RevId: 463339751
Change-Id: I75d30a899a822a01ba4fb85f2873f9865bedd667
  • Loading branch information
anakanemison authored and Copybara-Service committed Jul 26, 2022
1 parent 928a469 commit 9039498
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/starlark/builtins_bzl/common/objc/attrs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ _COMPILING_RULE = {
),
"non_arc_srcs": attr.label_list(
allow_files = [".m", ".mm"],
flags = ["DIRECT_COMPILE_TIME_INPUT"],
),
"pch": attr.label(
allow_single_file = [".pch"],
flags = ["DIRECT_COMPILE_TIME_INPUT"],
),
"pch": attr.label(allow_single_file = [".pch"]),
"runtime_deps": attr.label_list(
providers = [AppleDynamicFrameworkInfo],
flags = ["DIRECT_COMPILE_TIME_INPUT"],
Expand All @@ -73,9 +77,11 @@ _COMPILING_RULE = {
_COMPILE_DEPENDENCY_RULE = {
"hdrs": attr.label_list(
allow_files = True,
flags = ["DIRECT_COMPILE_TIME_INPUT"],
),
"textual_hdrs": attr.label_list(
allow_files = True,
flags = ["DIRECT_COMPILE_TIME_INPUT"],
),
"includes": attr.string_list(),
"sdk_includes": attr.string_list(),
Expand Down

0 comments on commit 9039498

Please sign in to comment.