Commit 6aa6fde
committed
fix(candle-kernels): conditionally link stdc++ for non-MSVC targets
On Windows with MSVC, linking against stdc++ fails because it is a
GNU/GCC library that does not exist in the MSVC toolchain. MSVC uses
its own C++ runtime which is linked automatically.
This fix wraps the stdc++ link directive in a target check, matching
the existing pattern in candle-flash-attn/build.rs.
Fixes #32771 parent 3a0d1cb commit 6aa6fde
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
0 commit comments