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

    <tr>
        <th>Summary</th>
        <td>
            Running `clang++` with any arguments takes 10 seconds first time after macOs load
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          real-mikhail
      </td>
    </tr>
</table>

<pre>
    Hi,

We've encountered the problem that calling any clang++ command after system start (macOS) takes 10 seconds while any command afterwards will not have such issue. Even calling `clang++ --version` takes those 10 seconds:
```
> time clang++ --version

Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Users/UserName/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang++ --version  0.01s user 0.03s system 0% cpu **9.973 total**
```

Clang is installed as a part of Xcode.
Information about system:
```
MacBook Pro 2022
Chip: Apple M2
OS: macOS Ventura 13.3.1 (22E261)
Xcode: 14.3.1
Build version 14E300c
```

Processor is ARM-based but Clang executable is also ARM-based so it should not be caused by Rosetta translation.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VEtvo0gQ_jXtS8moKTDEBw5OHGv3kJ1RJvu4FlAxvWm6UT-c5N-vGsiMpcmOZIFd9bkeX1V95L06G-ZG7G7F7rihGAbrGsekt6N6GUjpTWv79-Y3JfBOyKOQh-X5NwusLwxsOhtNYMc9hIFhcrbVPEIYKEBHWitzBjLv0GkyZ4G3Am-hs-NIpgd6DuzAv_vAI_hALoDAm5G6L98E7iHQC3vIJXjurOk9vA5K8xLtOsIrueRUWoOxAQa6MPjYDaC8j5zB_YXN91pEJa9L2W4v7LyyRlRyTRgG6_kqrSjWnkUl18_ys7iHoEaGz-NdkXWYJr3CYHVDXmYyK1K_s32bl7LIZIaY5WW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