Skip to content

Commit

Permalink
Cherry-pick 2.x: Include swift_proto_library attrs in compilation (#1479
Browse files Browse the repository at this point in the history
)

#1473

Co-authored-by: Sebastian Shanus <sebastian.shanus@robinhood.com>
  • Loading branch information
luispadron and sebastianv1 authored Jan 17, 2025
1 parent d935795 commit 05f197e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proto/swift_proto_utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ def compile_swift_protos_for_target(
compile_result = swift_common.compile(
actions = ctx.actions,
cc_infos = get_providers(compiler_deps, CcInfo),
copts = ["-parse-as-library"],
copts = ["-parse-as-library"] + getattr(attr, "copts", []),
feature_configuration = feature_configuration,
include_dev_srch_paths = include_dev_srch_paths,
module_name = module_name,
objc_infos = get_providers(compiler_deps, apple_common.Objc),
package_name = None,
package_name = getattr(attr, "package_name", None),
srcs = generated_swift_srcs,
swift_toolchain = swift_toolchain,
swift_infos = get_providers(compiler_deps, SwiftInfo),
Expand Down

0 comments on commit 05f197e

Please sign in to comment.