Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix libsql-ffi build on Windows #2005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

allan2
Copy link

@allan2 allan2 commented Mar 27, 2025

libsql-ffi build on Windows has been intermittently broken for a while due build.rs calling cp which is not present on Windows.

Timeline:

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

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 tursodatabase#1657 was opened.
- 2024-11-14: tursodatabase#1791 was merged. First fix using `#[cfg(windows)]`.
- 2024-11-15: tursodatabase#1791 reverted in 9499c3c for breaking libsql-js on macOS.
- 2024-12-04: 9499c3c was reverted since tursodatabase#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 tursodatabase#1657
@allan2
Copy link
Author

allan2 commented Apr 9, 2025

I've rebased on main branch, rev 483a150. Please take a look if you have time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libsql-ffi build failed on Windows
1 participant