-
Notifications
You must be signed in to change notification settings - Fork 469
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
Support for MSVC -MTd and -MDd #1230
Comments
* Use debug version of MSVC runtime library on debug Fixed #1230 * Fix clippy
It doesn't support it because the rest of the rust ecosystem doesn't either. Fixing this would require a much more coordinated effort across multiple repos, and still would have an ugly transition period. |
Yeah I tried it and have to revert it, as it breaks rust compilation |
The core issue is that rustc doesn't support this so there's no way for To recap, this is the current state of affairs:
So compiling using rustc only has two options. You can override Rust's choices by using a linker argument. E.g. |
If it is possible to override using a linker argument, then maybe we can add a new flag/env to use the debug version of msvc runtime? |
Related issue: rust-lang/rust#39016 |
An environment variable might work to keep it consistent across the whole build. We also need to keep in mind a future where rustc hopefully gains support for the debug CRTs. Then we'd just need to query it the same way we do |
Thank you for the information everyone! |
See rust-lang/cc-rs#1230 for context
The CMake documentation lists additional debug variants
for these MSVC flags, but as far as I can tell, the cc crate doesn't support the debug variants.
The text was updated successfully, but these errors were encountered: