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

    <tr>
        <th>Summary</th>
        <td>
            [Libc] Having issues compiling libc for MacOS
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

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

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

<pre>
    I recently tried compiling libc on overlay and got this message after running `ninja libc`:
```
ninja: error: 
'/Users/juliusalexandre/GitDownloads/llvm-project/libc/config/darwin/api.td', 
needed by 'projects/libc/include/ctype.h', missing and no known rule to make it
```

the cmake command I ran:
```
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='clang;libc' ../llvm \
 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
 -DCMAKE_BUILD_TYPE=Release \
   -DLLVM_TARGET_ARCH=AArch64 \ 
 -DLLVM_USE_LINKER=lld \
   -DLLVM_CCACHE_BUILD=true
```

I'm on the Apple Silicon M2 Pro


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k99u4jgUxp_GuTkqAgcScpGLkJCWHWgr2q5mr5CxD4k7jo1shy5vv3LCTlc73ZWiyJa_8_vs84c5JxuNmJPFiiyqiPW-NTbvUEi8MNW0plfR0YhrvgGLHLVXV_BWogBuurNUUjeg5JGD0WAuaBW7AtMCGuPBt9JBh86xBoGdPFqwvdYhhCRTLfU7G2JJMiVxQaYVmRZhPX7DdhCRuAC01tiwuMloSmj95tA6Quv3XsneMYV_Mi0sElrfS1-ZD60ME0Gg1KW7O1vzjtyHbTClNTf6JBtCa8Hsh9SE1uwsJ14M8PLmpBEFCjhegdD0hnCfDKm56kWw5P56xkl7C-6kc-GhIRfawA9tPjTYXiF4Ax37gSD9ly8e_75F4IOMm64LkA1Ypv8rTaP07h4eh6TeVeWu-LY-rN422-rw-sfzmsTVHhUyh3BXbbe_7w7rx2K1XR-e90-_rcvXFxJXhKZcMd2QeDU-LoXJ5JY8IItytPoJLw_l0-55s13vSVwNgZ9H37__ckjoitDVF5wvL_kpg78v_Frs79evh2JfPpC4KgrL22QehPATOOjeXtaH7ebx22CtlPiKVZZF-XCzJnHlbY__U4wNoWkXGjxUpTifFcKLVJIbDTsKz9b8UxyJPBZZnLEI81lKZ8liOU-yqM1jvhDxHJcpwxlPkJ1SkSUnFqfLdCm4yCKZ0ymdT1NKZ3OazrNJTFOcLekyPSWzhFJG5lPsmFSTUJGJsU0knesxz7JlmkWKHVG5YZApHQtIw0jbfOj-Y984Mp8q6bz7BHjp1TD82xCwqOCBXULbDmD37xk_GQs7xp9eot6qvPX-7EJH0prQupG-7Y8Tbrpby_w6diOU0Hq88CWnfwUAAP__mcpaYw">