Commit 08a130a
fix(build): gate ops
`src/CMakeLists.txt:442` referenced `no_workspace_kernel` /
`no_workspace_kernel_build` from inside `if(GENERATE_PYTHON_BINDINGS)`
without checking `WITH_ASCEND`. Those targets are only created in the
`WITH_ASCEND` block above (244-309), so non-Ascend
`pip install -e .[dev]` failed at CMake configure with `No target
"no_workspace_kernel"` and `dependency target "no_workspace_kernel_build"
does not exist`.
Mirror the gate: `if(WITH_ASCEND AND BUILD_ASCEND_CUSTOM)`.
Verified non-Ascend (`-DWITH_ASCEND=OFF -DWITH_CPU=ON`) and Ascend
(auto-detect) configure both pass.--whole-archive link on WITH_ASCEND
1 parent f303e41 commit 08a130a
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
443 | 447 | | |
444 | 448 | | |
445 | 449 | | |
| |||
0 commit comments