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

    <tr>
        <th>Summary</th>
        <td>
            Do something with `output` field
        </td>
    </tr>

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

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

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

<pre>
    clangd [documents](https://clang.llvm.org/docs/JSONCompilationDatabase.html) an `output` field  for a command object in `compile_commands.json`, but it doesn't appear to do anything with it. I'd like to use this field (or something similar) for its intended purpose, which is to support different ways of compiling the same file (e.g. different architectures, compiler flags in different targets).

Note that this does not have to be scoped to a file -- I am happy to switch the entire project to a particular build configuration so clangd can keep distinct caches for each one.

Discussion on Discord [here](https://discordapp.com/channels/636084430946959380/649134148723802113/1359997677592510707).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsU0GPpDYT_TXmUhpkbGjgwGF2W_1pvsPksMo5MnaBvWtsZBfTmn8fmW4lEyUnZFz1_N6rVypntwbEiXXfWHet1EE2punH2_9uv79XczSfk_YqrAZY981EfWwYKLPuysRgifbM5CsTNyZuZ1nt_cdWx7QycTNRZyZu___x2_v3uO3OK3IxXBWpWWWsLW2eiRFUAHbh8aD9IHbhsDj0BmCJCRTouG0qGIjzT9QE7qzVJxr-8bzM9c8cA7twJr7DfBA4AhMxByZ6ArXvqBJQBBNBhU-yLqxwd2TBUQ1vTPQGvPuFpeTICGRdfpJgYogJctzw0ZXd5rxKhXWh5yiDC4TBoIH9SHvMWDjcrdMWXC6I-dj3mAiMWxZMGAju6jNDXOChosCSRchqQ1icx_Io1mv9pUMlbR2hpiNhLg88DUiweLUWDl-KSaUVKTMx1oy_Mv76HqmIUvRQVpyBEAms-jg1zwhZxx1NOagHh5cXeAO1gVX7_nnKuDvS9mSKgVxC2FM8R3I27SqR04dXCebDeQM6hsWtRzpHDjnCM0RaBfiFuINxmVzQBFppi_n0E5W2EAM-iV9d1kfOBSAGKKeYzhhaTPhfCTSPErXvtY5biaRVIaAvKbzICx_aVvKxvYzdKAdefrZjI9umHXohBy6aRjJxa2Q3jmN_6ftuFF3De94XMyszSTPKUVU4NX3byraTsqvsJJfF4GCGpmkkl43q2lH2yziM_SB1u2DlJsFFx9um4a0QTVfPauAGu9F0XbvwRbGW46ac_2t5KpfzgVMjO9n0lVcz-nwuqBAB73DeMiHKvqapNL3Mx5pZy73LlP-GIUcep2v8EuEz-P_et-pIfvqnm6sje8xPJwvk8_PynDwTt5NIfnhWmH5M4s8AAAD__5S_a4A">