Skip to content

[Feature Request] Support additional_linker_inputs in swift_binary #1511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jpc-sf opened this issue Apr 18, 2025 · 1 comment
Open

[Feature Request] Support additional_linker_inputs in swift_binary #1511

jpc-sf opened this issue Apr 18, 2025 · 1 comment

Comments

@jpc-sf
Copy link

jpc-sf commented Apr 18, 2025

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?

@keith
Copy link
Member

keith commented Apr 18, 2025

yes we could, prs welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants