rules_swift icon indicating copy to clipboard operation
rules_swift copied to clipboard

[Feature Request] Support `additional_linker_inputs` in `swift_binary`

Open jpc-sf opened this issue 9 months ago • 1 comments

The cc_binary rule lets you pass additional inputs to the linker via additional_linker_inputs.

cc_binary(
  name = "bar",
  srcs = ["bar.c"],
  additional_linker_inputs = ["data.bin"],
  linkopts = ["-Wl,-sectcreate,__TEXT,__mysection,$(execpath data.bin)"],
)

Can swift_binary support this?

jpc-sf avatar Apr 18 '25 19:04 jpc-sf

yes we could, prs welcome

keith avatar Apr 18 '25 19:04 keith

@jpc-sf do you mind testing this. Also @keith I would appreciate your review.

adincebic avatar Sep 28 '25 13:09 adincebic