pub fn producesPdbFile(compile: *Compile) bool compile: *Compile633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649pub fn producesPdbFile(compile: *Compile) bool {
const target = compile.rootModuleTarget();
// TODO: Is this right? Isn't PDB for *any* PE/COFF file?
// TODO: just share this logic with the compiler, silly!
switch (target.os.tag) {
.windows, .uefi => {},
else => return false,
}
if (target.ofmt == .c) return false;
if (compile.use_llvm == false) return false;
if (compile.root_module.strip == true or
(compile.root_module.strip == null and compile.root_module.optimize == .small))
{
return false;
}
return compile.isDynamicLibrary() or compile.kind == .exe or compile.kind == .@"test";
}