We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddddc08 commit ad2b817Copy full SHA for ad2b817
src/release.rs
@@ -511,8 +511,12 @@ pub fn convert_to_stripped<W: Write>(
511
| FileKind::Pe32
512
| FileKind::Pe64)
513
) {
514
- data = llvm_strip(&data, llvm_dir)
515
- .with_context(|| format!("failed to strip {}", path.display()))?;
+ // Skip stripping MSVC runtime DLLs
+ let filename = path.file_name().and_then(|n| n.to_str());
516
+ if !matches!(filename, Some("vcruntime140.dll" | "vcruntime140_1.dll")) {
517
+ data = llvm_strip(&data, llvm_dir)
518
+ .with_context(|| format!("failed to strip {}", path.display()))?;
519
+ }
520
}
521
522
let mut header = entry.header().clone();
0 commit comments