Skip to content

Commit d6c674b

Browse files
authored
Rollup merge of #73516 - Crabapple-iOS:feature/apple-dynamic-linking, r=nikomatsakis
Allow dynamic linking for iOS/tvOS targets During the development and testing of the [Crabapple project](https://github.com/Crabapple-iOS/Crabapple), one obstacle was the lack of `cdylib` target support for iOS. Surprisingly, once `dynamic_linking` was enabled for iOS targets, it worked seemingly flawlessly. I could not find any information on why this was initially or still is disabled.
2 parents 67db7a2 + 56e115a commit d6c674b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc_target/spec/apple_sdk_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ pub fn opts(arch: Arch, os: AppleOS) -> Result<TargetOptions, String> {
141141
let pre_link_args = build_pre_link_args(arch, os)?;
142142
Ok(TargetOptions {
143143
cpu: target_cpu(arch),
144-
dynamic_linking: false,
145144
executables: true,
146145
pre_link_args,
147146
link_env_remove: link_env_remove(arch),

0 commit comments

Comments
 (0)