diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-25 02:03:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-25 02:03:34 +0200 |
| commit | d6c674bc14910b2bd2831adfb03726bbe7c8cea3 (patch) | |
| tree | e2d2a6e06a4040f5fb8faa2cf1c861c9de715d86 | |
| parent | 67db7a2d0553795d004e5e749e3ea73978c6f723 (diff) | |
| parent | 56e115a2627ba8bdd2e66c759457af96b2b0286a (diff) | |
| download | rust-d6c674bc14910b2bd2831adfb03726bbe7c8cea3.tar.gz rust-d6c674bc14910b2bd2831adfb03726bbe7c8cea3.zip | |
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.
| -rw-r--r-- | src/librustc_target/spec/apple_sdk_base.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustc_target/spec/apple_sdk_base.rs b/src/librustc_target/spec/apple_sdk_base.rs index b07c2aef1ca..0d0a0da9d1c 100644 --- a/src/librustc_target/spec/apple_sdk_base.rs +++ b/src/librustc_target/spec/apple_sdk_base.rs @@ -141,7 +141,6 @@ pub fn opts(arch: Arch, os: AppleOS) -> Result<TargetOptions, String> { let pre_link_args = build_pre_link_args(arch, os)?; Ok(TargetOptions { cpu: target_cpu(arch), - dynamic_linking: false, executables: true, pre_link_args, link_env_remove: link_env_remove(arch), |
