<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylUstu2zAQ_BrqQlSQKcmPgw5JgwA95dAPKJbiWtqEIgVyVcP5-q7kGi5Q9FSAIPc5Ozugje7afVPmMGkKjAkzoxNTL5nCoDMDU6892V6ZZzk6Bj1B__ZdK3O89cEFEmoeKWvKQUIsDuqEfZwmDA6dMq95meeYVuw-hjMNSxLgKNWnUlUvqnq63W9BR2lOmiENyFmZrxsYxcwJYcp3RuuwQEzg6VNAL8TjVqj21Rr_MSeKifgqvgbmRHZhXNHkvXF1EX-zhXlGkJFRYhrCVdKy-n3RtWmCjzVErOeYM1mPa3WfII_aXnUP3q_58xL6dau8Nj8oWzzHTSG8yjyx_mBeFq6r3ak-QQELjzF1Aob2c_FwyR9ULMl3I_OcVf0kMsoZZNXFliKuON7_vD9f5hTfsWdxKecFRbvXtt7tq2LssKkAmsaZw7457U1ztDvbnNtDi9ZUaFzhwaLPnWqfVftS_P9I6kxlTLXbmV1TN_W-PNan8xGrQ9s6B0JDNRVOQL5cccqYhiJ1G6RdhixJT5nzIwmi-hAQ7wyZ2GP3kDhE_vs__PvzFhvdbuP6C5YIA_w>53160</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
iostreams not initialized with static libc++ on macOS
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
calebzulawski
</td>
</tr>
</table>
<pre>
I'm interested in using static libc++ on macOS (I'm aware this isn't the recommended/supported configuration).
On other targets, the iostreams static is initialized with the `init_priority` attribute, but this doesn't appear to do anything on macOS, making it possible to crash by calling functions on iostreams before they're initialized.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1UcuO3CAQ_Bp8QbEYMw_74MNuVivltId8QAS4bXcWgwXtjGa_Po0no40URULQr6qubmwcbv030VwWiYEgQSYY2JRbxjDJTIbQSY_WieaZj4xBLsa9fZeiae84czUJJM2YJebAIWIHZAIXlwXCAINoXvO2rjEVbhfDiNOWmDhydVcL9SLU0_1-CzIyOEkyaQLKovm6k2HMlMAs-aGoNAtIaDx-MOkVad4LxVmV-I81YUxIN_alIUpoN4LCxu9d6xDhj1qzrmC4ZeSYNOHGaR79MWgBLea9hJDkGnNG66FUu2TyLO1NOuN9yY9bcGWqXMCfki2Mcd8Q3LgfW38pr6uh10OnO1MRkof-ExYi_Tvj_z-k2pLvZ6I1C_3EG-czMWKzNf8DO97_ejxf1hR_giN2MecNeM2vJ304q2ruj0o72znXaTuqth1Mo1qrte3saC0oU3ljwedenJ7F6aXCvlFNow6H5nDUR32uW92NLajL6TQw9nIWRwWLQV-XxnVMU5X6XYPdpsxJj5nyZ9LweqcA8OA3G80x9bxhsB-bN9f8jtUuut8V_wYK1O9n">