diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-08-19 12:13:04 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-11-10 14:03:11 +0100 |
| commit | 1357790ec969bb6ee19ade6e8a348bd9d7cbbc4d (patch) | |
| tree | 193781a8f3722b2459e8c3db0d9645961ec10be6 /src/link | |
| parent | dd8df1caf33291c2deddf684354c3dd80c402b45 (diff) | |
| download | zig-1357790ec969bb6ee19ade6e8a348bd9d7cbbc4d.tar.gz zig-1357790ec969bb6ee19ade6e8a348bd9d7cbbc4d.zip | |
win: combine PDB fixes into one changeset
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/Coff/lld.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/link/Coff/lld.zig b/src/link/Coff/lld.zig index 9d9d1e4094..00e6c4d8d1 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -188,6 +188,10 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod }); try argv.append(try allocPrint(arena, "-PDB:{s}", .{out_pdb})); try argv.append(try allocPrint(arena, "-PDBALTPATH:{s}", .{out_pdb})); + + if (self.base.options.pdb_source_path) |path| { + try argv.append(try std.fmt.allocPrint(arena, "-PDBSOURCEPATH:{s}", .{path})); + } } if (self.base.options.lto) { switch (self.base.options.optimize_mode) { |
