| ... | ... | @@ -1174,6 +1174,13 @@ pub const Target = union(enum) { |
| 1174 | 1174 | }; |
| 1175 | 1175 | } |
| 1176 | 1176 | |
| 1177 | pub fn isUefi(self: Target) bool { |
| 1178 | return switch (self.getOs()) { |
| 1179 | .uefi => true, |
| 1180 | else => false, |
| 1181 | }; |
| 1182 | } |
| 1183 | |
| 1177 | 1184 | pub fn isWasm(self: Target) bool { |
| 1178 | 1185 | return switch (self.getArch()) { |
| 1179 | 1186 | .wasm32, .wasm64 => true, |
| ... | ... | @@ -1484,7 +1491,7 @@ pub const LibExeObjStep = struct { |
| 1484 | 1491 | } |
| 1485 | 1492 | |
| 1486 | 1493 | pub fn producesPdbFile(self: *LibExeObjStep) bool { |
| 1487 | | if (!self.target.isWindows()) return false; |
| 1494 | if (!self.target.isWindows() and !self.target.isUefi()) return false; |
| 1488 | 1495 | if (self.strip) return false; |
| 1489 | 1496 | return self.isDynamicLibrary() or self.kind == .Exe; |
| 1490 | 1497 | } |
| ... | ... | @@ -1581,7 +1588,7 @@ pub const LibExeObjStep = struct { |
| 1581 | 1588 | /// Unless setOutputDir was called, this function must be called only in |
| 1582 | 1589 | /// the make step, from a step that has declared a dependency on this one. |
| 1583 | 1590 | pub fn getOutputPdbPath(self: *LibExeObjStep) []const u8 { |
| 1584 | | assert(self.target.isWindows()); |
| 1591 | assert(self.target.isWindows() or self.target.isUefi()); |
| 1585 | 1592 | return fs.path.join( |
| 1586 | 1593 | self.builder.allocator, |
| 1587 | 1594 | [_][]const u8{ self.output_dir.?, self.out_pdb_filename }, |