When building uefi target with aarch64-unknown-uefi/x86_64-unknown-uefi, the compiler can also generate a PDB file. But because target_os is "uefi" in this case, the file is not added to the output group (currently only "windows" is supported https://github.com/bazelbuild/rules_rust/blob/main/rust/private/rustc.bzl#L1380).