SIGN IN SIGN UP

Add executorch_no_prim_ops target (#2934)

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

Currently `libexecutorch.a` always contain prim ops. This becomes a problem when a binary contains 2 "versions" of `libexecutorch.a`, causing a double registration of the prim ops.

For example, `libA.so` depends on `libexecutorch.a` and a binary `B` depends on both `libA.so` and `libexecutorch.a`. Since both `libexecutorch.a` and `libA.so` contains prim ops, they will be registered twice.

In this PR I created another library `executorch_no_prim_ops` for `libA.so` to depend on.

Reviewed By: cccclai, kirklandsign

Differential Revision: D55907752

fbshipit-source-id: 755a9b8d5f6f7cf44d011b83bfdc18be6da1aa05
M
Mengwei Liu committed
d309e9dc5850fb6460452e205fd2865cfa415a1d
Parent: 5d299fe
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 4/9/2024, 6:43:40 PM