mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-04-29 18:58:07 +00:00
libsql-ffi build on Windows has been intermittently broken for a while due _build.rs_ calling `cp` which is not present on Windows. Timeline: - 2024-08-10: Issue #1657 was opened. - 2024-11-14: #1791 was merged. First fix using `#[cfg(windows)]`. - 2024-11-15: #1791 reverted in 9499c3c for breaking libsql-js on macOS. - 2024-12-04: 9499c3c was reverted since #1791 was fine and did not cause the macOS problem. Windows build works again. - 2025-03-17: da54c1b breaks Windows build. - 2025-03-21: 0.9.1 is released with broken Windows build. - 2025-03-27: This commit fixes the bug introduced in da54c1b. This commit fixes a bug introduced by da54c1b. `Command::status()?` was propogating the error so the fallback, `fs::copy`, was never reached. This is now fixed so libsql-ffi builds again on Windows. Closes #1657