Skip to content

Support dylib on iOS #21727

Closed
Closed

Description

iOS added support for dynamic libraries in iOS 8. Clang/LLVM can now build them:

$ clang -arch armv7 -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/  -dynamiclib test.c

However rustc cannot:

$ rustc --crate-type dylib --target=armv7-apple-ios test.rs
warning: dropping unsupported crate type `CrateTypeDylib` for target `armv7-apple-ios`

We should support building dylibs on the platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-iosOperating system: iOSP-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions