<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58957>58957</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang++ 14.0.6 does not generate PDB file
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Scr3amer
      </td>
    </tr>
</table>

<pre>
    Hello,

**My objective:**
Generate corresponding PDB file along my .exe with Clang++ 14.0.6 + MinGW UCRT
I do **not** want to use clang-cl nor clang-cpp

**My attempt:**
clang++ -march=native -O3 -g -gcodeview main.cpp -o app.exe

**My problem**
No PDB file is generated.

>From my understanding clang supports generating PDB from both frontends, the GCC-like and MSVC-like ones.
LLD seems to support that too.
I even found the gcodeview in the --help of clang++.
But nothing happens when I do it.

What am I missing ?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtkt2OmzAQhZ8GbkYgfkIIF1x0E2Vbabetum332uAB3Bob2Sbpvn3HhM2m1UoWjDEz5_ibaTR_qT-ilDrI9kFyCJIP6zPz6_EFdPMLWydOGOTrx8sP96jQMIfQamPQTlpxoXr4eriDTkgEJjVtxxeI8Q_CWbgB9pKpPsjuaEG6iZN4Cz58FOr-GX7sv32_VP4EXMNFSml3CeDMlAOnYbak6OtErQSlzetmmt51z5zDcXL_eW9vjEQjM-0Q5AfF_C0h-pJD1NNqNceTwDOMTKiYBCDSwKbJ3-ddrcnoRuJ4K_RZvwERFvqVGY9vCxyNHj2oWXE01rELyMUj2HmatHHX1Ctin9NogkqRcqi4pQaCGxDu9_tIit_UAcXh8ennutMK7Sr78HAAizhaD3RVoFTmAev4tQl4QgWdJldL2TceQi0fomhAOYHu4Abnmn03O2qOG7zdgZihsnAeqN7SW-H-uf-zV2YjnY3CWp8S5McQ63S73WVVUmRpyOucV3nFQiecxPqdQeIarZe8Mr6CD2cj68G5yS5TcKTV0zTOTdxqatZRytPrK6IW-mmnLTmZkZgei11VlOFQl1ixvEsxaZpy06VVueNFipuyK9k2qcoklKxBaeugIFuZ8px8CYqD4hCKOkuyLE3TLKMgSeOKZ3lXlKwo2l27xTbYJEiDJmPvI9amD029WGrm3tKhFNbZt0NGoHqFuMhRfTa7QZv6qTU5G9GEi3a9eP8LKDI1Qg">