build: .c ofmt does not produce a pdb

This commit is contained in:
kcbanner
2023-01-27 18:01:49 -05:00
committed by Andrew Kelley
parent a9b68308b9
commit 7c2ba950a7

View File

@@ -617,6 +617,7 @@ pub fn isStaticLibrary(self: *LibExeObjStep) bool {
pub fn producesPdbFile(self: *LibExeObjStep) bool {
if (!self.target.isWindows() and !self.target.isUefi()) return false;
if (self.target.getObjectFormat() == .c) return false;
if (self.strip == true) return false;
return self.isDynamicLibrary() or self.kind == .exe or self.kind == .test_exe;
}