Commit 7c2ba950a7

kcbanner <kcbanner@gmail.com>
2023-01-28 00:01:49
build: .c ofmt does not produce a pdb
1 parent a9b6830
Changed files (1)
lib
lib/std/build/LibExeObjStep.zig
@@ -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;
 }