Skip to content

Commit 10efcc2

Browse files
committed
Swift: add -headerpad_max_install_names to link options
1 parent aeb667c commit 10efcc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

swift/extractor/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ swift_cc_binary(
1717
"//swift/third_party/swift-llvm-support",
1818
"@absl//absl/strings",
1919
],
20+
linkopts = select({
21+
"@platforms//os:macos": ["-headerpad_max_install_names"],
22+
"//conditions:default": [],
23+
}),
2024
)
2125

2226
sh_binary(

0 commit comments

Comments
 (0)