[CMake] When should we use static lib and when shared
Open
@larryliu0820 is already working on this.
Since Apr 25, 2025.
module: build/install
triaged
- Dominant language
- Python
- Stars
- 5k
- Forks
- 1.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 581
Description
🐛 Describe the bug
We can definitely split backends and ops into its own .so library.
Right now we don't have a clear guideline when to use which.
We also have something like
if(CMAKE_TOOLCHAIN_IOS
OR CMAKE_TOOLCHAIN_ANDROID
OR APPLE
)
repeating.
Versions
main
a325c56864c5b25630c1ebda03c8f16a96a02a19
cc @larryliu0820 @jathu
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.