<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/76588>76588</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLVM does not build with libc++ built without threading support.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
veluca93
</td>
</tr>
</table>
<pre>
As per title, if one builds `libc++` without threading support, the resulting `libc++` cannot then be used to build `llvm` (or other llvm projects).
This is also true if one passes `-DLLVM_ENABLE_THREADS=OFF` to the CMake build script.
The error messages are numerous, generally coming from unguarded usage of C++ thread primitives all over the codebase.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Us1u3DwMfBr5QsRwqF3_HHzYZGN8h-Qr0Aa9BrJF22plyxClLfL2hbxbpGhRQJAAikNyhqOYzbQSteL4II7nTMUwO99eyMZBNTLrnX5vTwwbeQgmWBL4CGYEtxL00VjNIMrCmn4Q-JBOWcAPE2YXA4TZk9JmnYDjtjkfEjbMBJ442pA-_sIOal1dgtIKPUFk0hDctdWebS9LyhNYOw8uzOQhxWDz7hsNgQU2uSjOojhd79fZMBgGZdlB8JF-Tb8pZtqnvzs_P399eXv6__Tw_PT2-t_np9P5i5DnT12XWgW3D_34or7fOAMP3mzhjz4E5L3zsBCzmohBeYI1LuRd5ER9opW8svYdBrck9qN3C8R1ispr0hATDNwIj1c9bgLC5s1igrmkktaCu6RdzASD09QrpjzTrdSNbFRG7X1VyLquKpTZ3Db1QQ6a7qsSx14piUeF5aFWVYP1MPZNZlosUN4jNohFfZB5MzSqJ4VYlOUoCy0OBS3K2DyJnDs_ZYY5UluVx7rOrOrJ8u4dxN8WiZi85NsEuuvjxOJQWMOBP8rsZmqT8KAdMaStX8VN9oGPYns0_NtUeRa9becQNhbyJLAT2E0mzLHPB7cI7HbLXJ-7m0sEdjsNFtjtTH4GAAD__yql-50">