Ignore link warning (missing pdb)

This commit is contained in:
Caelan Sayler
2024-05-11 12:08:05 +01:00
parent acaa7672ce
commit aa57c96d62

View File

@@ -74,6 +74,7 @@ fn delay_load_exe(bin_name: &str) {
// Turning them into errors forces them to be displayed (and the build to fail).
// If we do want to ignore specific warnings then `/IGNORE:` should be used.
println!("cargo:rustc-link-arg-bin={bin_name}=/WX");
println!("cargo:rustc-link-arg-bin={bin_name}=/IGNORE:4099"); // PDB was not found
}
#[cfg(target_os = "windows")]