Commit 8fb3aa3
cmake: build shared libexecutorch_quantized_ops when EXECUTORCH_BUILD_SHARED=ON
Create a single libexecutorch_quantized_ops.so that bundles
quantized_ops_lib and quantized_kernels, allowing consumers to link
quantized op implementations via a shared library.
quantized_ops_lib already has --whole-archive as an INTERFACE link
option from Codegen.cmake, so we do not wrap it in
$<LINK_LIBRARY:WHOLE_ARCHIVE,...> to avoid pulling the registration
constructor in twice. Link against executorch_shared (not
executorch_core) to share a single operator registry.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 32feb1a commit 8fb3aa3
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
0 commit comments