| ... | ... | @@ -932,6 +932,10 @@ pub fn addCSourceFile(self: *Compile, source: CSourceFile) void { |
| 932 | 932 | } |
| 933 | 933 | |
| 934 | 934 | pub fn addWin32ResourceFile(self: *Compile, source: RcSourceFile) void { |
| 935 | // Only the PE/COFF format has a Resource Table, so for any other target |
| 936 | // the resource file is just ignored. |
| 937 | if (self.target.getObjectFormat() != .coff) return; |
| 938 | |
| 935 | 939 | const b = self.step.owner; |
| 936 | 940 | const rc_source_file = b.allocator.create(RcSourceFile) catch @panic("OOM"); |
| 937 | 941 | rc_source_file.* = source.dupe(b); |