| author | |
| committer | |
| log | 24cbf1c70679ee81d45fb7a8ba5c48fdb77cbd5c |
| tree | b367c26e62d4a62d4cdf5e0ef3e801308a25d39d |
| parent | a482b82e2d4fdcd0a9a8683e403ced789c7f98a3 |
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| ... | ... | @@ -2037,6 +2037,10 @@ pub fn addCCArgs( |
| 2037 | 2037 | |
| 2038 | 2038 | if (!comp.bin_file.options.strip) { |
| 2039 | 2039 | try argv.append("-g"); |
| 2040 | switch (comp.bin_file.options.object_format) { | |
| 2041 | .coff, .pe => try argv.append("-gcodeview"), | |
| 2042 | else => {}, | |
| 2043 | } | |
| 2040 | 2044 | } |
| 2041 | 2045 | |
| 2042 | 2046 | if (comp.haveFramePointer()) { |