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

    <tr>
        <th>Summary</th>
        <td>
            `-gsplit-dwarf` without `-c` doesn't produce `.dwo` file
        </td>
    </tr>

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

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

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

<pre>
    ```
$ ./build/rel/bin/clang++ -g -gsplit-dwarf -o ~/tmp/a /tmp/a.cc 
$ ls ~/tmp
a

$ g++ -g -gsplit-dwarf -o ~/tmp/a /tmp/a.cc 
$ ls ~/tmp
a  a.dwo
```

https://gcc.gnu.org/wiki/DebugFission says
```
Use the -gsplit-dwarf option to enable the generation of split DWARF at compile time. This option must be used in conjunction with -c; Fission cannot be used when compiling and linking in the same step.
```
but that seems to not be true for gcc anymore.

It seems reasonable that we should produce `.dwo` even without `-c`.

@dwblaikie
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1U02PmzAQ_TVwGQUR8xE4cNhVNlKvVauejT2AN8ZG2F6Uf9-BTZrdKNdKlj1mnt-8-aC18tJEZXpd6TFKXyKWQxKxUxuUlnTOqNebMrQLzU0fsVdasOtpuUkrv5MLnzvYWYgOb4Ty40Q7h7uZCAF3du2-ALev_Or8B_kvQQB4Ihd7xTxkve2D95OLMiI40eqFSHoTEjuTnNOizoqOI7ahPynnlDXg-MU9pfvtEPyAD-Lt5NdX3gIa3upPSI8GZ745bAcbHI5_Xn6egHsQdpzUClQjJvBrUO5GMgbnoUUIDiUoQ0jzHozYfIvyA-xElL3CTangxtj7g2VAcyVXpgduJJBxXm3iWmU5PtLmcUqeJtgGTzBS6BBHt6Z0pfdzQOjsDFQ94r2Mdsbka41_3N7MyJ291YGYFoo32KAlTLOVQSBQtK1hZQr4gZ95WQpMHyg7cn4bmzyVS6s5tQljbPZlmVX1fl-xWDaZrLOax155jeu8f2vLSv_IDNKio4k_-GdiOmpJHGbdPMwLkYQ2obLSReuP27EjincUnq7UjYCOjOJQ76t4aHjBWIl1nvIKD_taVGXdVUx0QmRMSOxizVvUrokK-h-YwQU2CrKj4hirhqWMpTVjLCvqnCVVznIpEDOZypanBRUFR650supYBzmem00SDbEjp1bOu7uT07D0BnELR_w8UFnmhmNouTm7eIvdbNr_AiieTdM">