Skip to content

Enable Objective-C ARC support automatically for Apple platforms #25

Closed
@cmcgee1024

Description

@cmcgee1024

There is a build setting called "CLANG_ENABLE_OBJC_ARC" that should be enabled on Apple platforms, but not for any others since that supports doesn't exist in swift toolchains there. When building PIFs the client shouldn't need to be aware of this implementation detail.

Once this is in place then SwiftPM won't need the following code in the PIF Builder:

#if os(macOS)
        // Objective-C support only for macOS
        settings[.CLANG_ENABLE_OBJC_ARC] = "YES"
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions