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

Windows: fix build issue with newer version of Rust #1306

Closed

Conversation

micahsnyder
Copy link
Contributor

Newer versions of Rust appear to include '/defaultlib:msvcrt' in the list of native static libs when you run '--print=native-static-libs'.

MSVC doesn't know what to do with this when passed as a linker dependency.

Since msvcrt.lib is ALSO listed, the solution seems to be to strip this item from the list.

@micahsnyder micahsnyder force-pushed the windows-rust-defaultlib branch from edbab7c to 02d0770 Compare July 10, 2024 22:39
Newer versions of Rust appear to include '/defaultlib:msvcrt' in
the list of native static libs when you run '--print=native-static-libs'.

MSVC doesn't know what to do with this when passed as a linker dependency.

Since msvcrt.lib is ALSO listed, the solution seems to be to strip this
item from the list.
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.

1 participant