Skip to content

Fix Windows build #3

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

Merged
merged 25 commits into from
Feb 23, 2025
Merged

Fix Windows build #3

merged 25 commits into from
Feb 23, 2025

Conversation

JR-1991
Copy link
Member

@JR-1991 JR-1991 commented Feb 23, 2025

This PR addresses the Windows build issue by vendoring the dependencies. It includes the libSBML dependencies and ensures that libSBML is built statically. However, as noted in #2, merely including these dependencies did not completely resolve the problem.

The underlying issue was that the C runtime (CRT) used by the compiled C++ and Rust binaries differed, causing runtime errors. This has been fixed by setting rustc flags in .cargo/config.toml to enforce a static runtime, thereby avoiding a mix of static and dynamic libraries that could lead to runtime issues.

Windows and MacOS (arm64 & x86) are now sucessfully built and tested. Only Linux is open to be fixed, but that's for another PR.

@JR-1991 JR-1991 added the bug Something isn't working label Feb 23, 2025
@JR-1991 JR-1991 self-assigned this Feb 23, 2025
@JR-1991 JR-1991 merged commit 812034f into master Feb 23, 2025
3 of 4 checks passed
@JR-1991 JR-1991 deleted the fix-windows-debug branch February 24, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libsbml build fails to link on windows-latest
1 participant