| author | |
| committer | |
| log | c2de3bdc12885a456e4c616aa8043ab01ffecb11 |
| tree | 1c77fe4e462440b0993d97c26880a2b71f44d5d2 |
| parent | ad95eecf375ca051c49e9eb183b23eedca994927 |
Previously, when mixing Zig and C/C++ code for windows-gnu targets, zig
would get codeview format but the C/C++ code would not get any debug
info. Now, C/C++ code properly emits debug info in codeview format and
everything just works.1 files changed, 4 insertions(+), 0 deletions(-)
src/Compilation.zig+4| ... | ... | @@ -1989,6 +1989,10 @@ pub fn addCCArgs( |
| 1989 | 1989 | |
| 1990 | 1990 | if (!comp.bin_file.options.strip) { |
| 1991 | 1991 | try argv.append("-g"); |
| 1992 | switch (comp.bin_file.options.object_format) { | |
| 1993 | .coff, .pe => try argv.append("-gcodeview"), | |
| 1994 | else => {}, | |
| 1995 | } | |
| 1992 | 1996 | } |
| 1993 | 1997 | |
| 1994 | 1998 | if (comp.haveFramePointer()) { |