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

    <tr>
        <th>Summary</th>
        <td>
            [libc][arm] syscalls doesn't build under `-mthumb`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            build-problem,
            libc
      </td>
    </tr>

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

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

<pre>
    ```
In file included from external/llvm-libc/test/UnitTest/TestLogger.cpp:4:
In file included from external/llvm-libc/src/__support/OSUtil/io.h:19:
In file included from external/llvm-libc/src/__support/OSUtil/linux/io.h:13:
In file included from external/llvm-libc/src/__support/OSUtil/linux/syscall.h:21:
external/llvm-libc/src/__support/OSUtil/linux/arm/syscall.h:15:2: error: "The arm syscall implementation does not yet support thumb flavor."
   15 | #error "The arm syscall implementation does not yet support thumb flavor."
      |  ^
```
There's a TODO in the sources without a corresponding bug on file.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0k09vnDAQxT-NuYyCYIxhOXDYZLtSpUo5dHOODJ4Ft8ZG_pNmv30Fu2mrHKNUQmCh4feYeW9kCHq0RB0T90wcMpni5Hxn9fBTUZDJWE0-ZL1Tl47Vxe0qDqzYf7Vw1oZA28EkRQrO3s1Ar5G8lYbh0ZiX-c7ofmB4jBQiw-OT1fF0Pa6Pb24cyefDsjC-rxjff4Ac_Hp_fg5pWZxfyY_fn6Jey7TLJ8b3ZfvpZKNtev1Hgf83hXAJgzRmk8Hyj8zHgdLP77ClWNmM74G8d349MMTTRCD9DLdK0PNiaCYbZdTOgnIUwLoIF4pwk4M4pbmHs5EvzucM8fqvAFAKYM0DMOSbxKfzATY-MPHl-u5dVk8TeWLYBJBwejw8grYQJ4Lgkh8owC8dJ5ciSBic9xQWZ5W2I_RpBHd1NM9Ux1XLW5lRVzZlU5Si4iKbuqFCWYuS-jMveds3u3Nbl4oG1TZFpTjPdIcFVoXAFouKC5EPvC5qIdp6V5VC7ASrCpqlNvnqZe78mOkQEnUtb_guM7InE7YNReyTNupu8a43NK8jwAeGeLUf1w323RaIPo2BVYXRIYa_2Kij2XZ9-0AcmLhf8yAObzaEbfCWYRNhk4JkFXlgdXE3b-NndZElb7opxiWsecQjw-Oo45T6fHDzLZFvwVy8-0HDmsStpcDweO3qpcPfAQAA___paHFO">