SIGN IN SIGN UP

Add target_link_options_shared_lib to coremldelegate build (#3556)

Summary:
Backends use a static initializer to register themselves. We have an established solution to forcing the Apple linker to load the object files containing said initializer, so let's use it for CoreML.

Pull Request resolved: https://github.com/pytorch/executorch/pull/3556

Test Plan: Attempt to load a CoreML PTE from Python no longer fails with error about the backend not being registered

Reviewed By: mikekgfb

Differential Revision: D57136490

Pulled By: swolchok

fbshipit-source-id: 613d7f786fa47f34a94ee4eea7b2a81ef670a573
S
Scott Wolchok committed
c83af25b76254e96ad0e67ddb0593ad8d039dc66
Parent: 749f6ab
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 5/10/2024, 5:12:06 PM