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

    <tr>
        <th>Summary</th>
        <td>
            [clang][preprocessor][ARM] `--target=thumb` should imply `-mthumb`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    I guess I was surprised to find that `--target=thumbv7-linux-gnueabihf` did not imply the same preprocessor defines that `-mthumb` does.  This requires llvm-libc to set `-mthumb` in addition to `--target=thumbv7-linux-gnueabihf`, which is obnoxious.

See also #96550. cc @kbeyls @smithp35 @rengolin @DanielKristofKiss 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUs1u2zwQfBrqsrBArX4SHXRIPsNAEHyXti9AiWtpG4pUuWQSv30hO0DaoodeyAXBGczOjBHh2RMNqn1U7bEwOS0hDp6nF0tisvNMUYox2MvwBHMmEXiCNyMgOW6RhSykAGf2FtJiEqhOHw7JxJmSqo9pyev4endw7PP7YfaZzMjLWXUaLFvwIQGvm7tAWgjErARbpC2GiURCBEtn9iSfzOuV8AoPJCXAt4UFIv3IHEnAudf14Hicdk1Cf2LYg7GWEwe_f_hXqQr_g7eFpwVYIIw-vHPIUip9VPrhdn4lAuMkgMK679pWlzBNoBr9MtLFyT7JymnZ6nafI_k5OPb7fDSeyT1HlhTOzywChR1q29e9KWio7qoeu7uqaYplqEZE09xPuql1149W1_a-pmo6W2uxNlXBA2psdIcNYoXYlKOezl1NXT9VFhGtajSthl25O1WGOBcskmnou7brCmdGcnKtAuLkjJ8V4t6KOFydHfMsqtGOJcknQ-Lkrv25Idqjah9_TfH28vDlf9Ue_-b5nowsITv70YXfQitydMOS0iaqflB4UniaOS15LKewKjztMj6uwxbDd5qSwtN1K1F4ui32OuDPAAAA__-0AfGa">