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

    <tr>
        <th>Summary</th>
        <td>
            Need to add header file fenv_darwin_impl.h into Bazel build rules
        </td>
    </tr>

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

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

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

<pre>
    This post https://discourse.llvm.org/t/can-i-build-llvm-using-basel-for-macos-arm64/67043 details the need of this change.

When I was building LLVM using Bazel for macOS+M series chips, I got the following error:
```
FPUtil/FEnvImpl.h:16:10: fatal error: 'aarch64/fenv_darwin_impl.h' file not found
```

@tschuett kindly noticed that the header file `fenv_darwin_impl.h` is in the repo https://github.com/llvm/llvm-project/blob/main/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h. 

It is just not mentioned in the Bazel build rule https://github.com/llvm/llvm-project/blob/3abdd9b91bc17541e78de6251043e178efe0e3ee/utils/bazel/llvm-project-overlay/libc/BUILD.bazel#L273
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU12r4zYQ_TXyy2Ajy98Pfkh6awhk20K77WOQrbGtXVkykpyQ_voiJ73b3nspdCFMMPNx5pyj4c7JSSO2pDiS4iXim5-NbW9cT183eZdRb8S9_W2WDlbjPMzer45kB8I6wjoh3WA26zBR6rokxk6EdZ6wbuA6lnG_SSXikIo3J_UU99yhikdj44UPxsXcLmVOWFdWNM9AoOdSOfAzgkYUYEbwAXmYuZ4wIfSF0MMj_jGjhhPcuIMdReoJzuffP8EOBEf-JyoYjYWFDz__StjxEzi0EsMwuTrCfoATTMbvYKNRytxCH1prbKD3gCrp87d_dr989lIR1nU_6utpWVUyk-yQliFQkh1g5J6r1xlAWMW5Head4oj6ehHc3qS-yEcvq2CUCkEbD6PZtPgQ9Rlz6t0wb-g9fJVaqHtokwMK8DN_0JiRC7SPmaSkHyCWFKQDqfdyi6t54-ck_bz1yWAWwrrg2_MvXq35gkNwtlemJ6xbuNQhKfuBsM7ZEC8Xt62rsaHsVav_UiCBf1I8-bDcl835XZEFtZdGo_h734enu9tgN4XfvXvGeyGavkn7Ia2KPMWqFliyIqV5hmlV44gUM0TCus1L5UJnwH4zMDZXtIrfv8lw_Hw6vyTP2uzMqiwSbSaarOERtun-ypuiKaK5pY2oh6Kqe0xTygdWZZxhmVdjWg9FxptItowyljJapXXRFGnCGIqGp3ktClZjgySnuHCpXk8vks5t2BZNVtWR4j0qt181YxpvsCcJY-HIbbvz6LfJkZwq6bz7NsVLr7D9KdyfN8CF-Ne7em8iSO3NO3NctFnV_m-H9i2D4DuLvwIAAP__-BR-1g">