Skip to content

Commit

Permalink
Revert "Use debug version of MSVC runtime library on debug (#1231)" (#…
Browse files Browse the repository at this point in the history
…1237)

This reverts commit c80a706.
  • Loading branch information
NobodyXu authored Oct 6, 2024
1 parent 39c0aaf commit 2b94f52
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1945,15 +1945,8 @@ impl Build {
None => {
let features = self.getenv("CARGO_CFG_TARGET_FEATURE");
let features = features.as_deref().unwrap_or_default();
let debug = self.get_debug();
if features.to_string_lossy().contains("crt-static") {
if debug {
"-MTd"
} else {
"-MT"
}
} else if debug {
"-MDd"
"-MT"
} else {
"-MD"
}
Expand Down

0 comments on commit 2b94f52

Please sign in to comment.