Skip to content

[CMake] When should we use static lib and when shared #10461

@kirklandsign

Description

@kirklandsign

🐛 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
a325c56

cc @larryliu0820 @jathu

Metadata

Metadata

Labels

module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions