Rename `executorch` cmake target to `prim_ops_lib`
Open
@JawadKhan65 is already working on this.
Since Jun 18, 2025.
good first issue
- Dominant language
- Python
- Stars
- 5k
- Forks
- 1.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 581
Description
🚀 The feature, motivation and pitch
As titled. The cmake target executorch is confusing, it only contains executorch_core and register_prim_ops.cpp. It would be good if we can change the name to prim_ops_lib, following the pattern of portable_ops_lib and optimized_ops_lib.
After the renaming, it would be good to change executorch-config.cmake to add target_link_options_shared_lib(prim_ops_lib) there. Then we can get rid of code like:
https://github.com/pytorch/executorch/blob/main/examples/models/llama/CMakeLists.txt#L82-L83
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.