Skip to content

[ffigen] Don't generate block helpers for package:objective_c #2964

@liamappelbe

Description

@liamappelbe

There's no reason to include block helpers in package:objective_c, as they're not exported publicly. If users need to interact with an API in package:objective_c that uses blocks, they use the helpers code genned in their own bindings. The native trampoline functions for these blocks are compiled into the package:objective_c dylib, which also causes a bit of code bloat. We just need to look for the package:objective_c config flag, and then not code gen the block helpers if we see this flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions