diff options
| author | kcbanner <kcbanner@gmail.com> | 2023-01-27 18:01:49 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-29 15:04:51 -0500 |
| commit | 7c2ba950a758b86893bfbe73521b29895f7ac4f0 (patch) | |
| tree | 8dddcf16c8a8fdc6925d36def392055d896190e5 | |
| parent | a9b68308b9eeb494524e2b7ab0d63cfa6b623cd0 (diff) | |
| download | zig-7c2ba950a758b86893bfbe73521b29895f7ac4f0.tar.gz zig-7c2ba950a758b86893bfbe73521b29895f7ac4f0.zip | |
build: .c ofmt does not produce a pdb
| -rw-r--r-- | lib/std/build/LibExeObjStep.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/build/LibExeObjStep.zig b/lib/std/build/LibExeObjStep.zig index 213c5c6559..cb37b24885 100644 --- a/lib/std/build/LibExeObjStep.zig +++ b/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; } |
