<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78111>78111</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`-DLLVM_ENABLE_LTO=Yes` has the wrong default
</td>
</tr>
<tr>
<th>Labels</th>
<td>
cmake
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cjdb
</td>
</tr>
</table>
<pre>
`-DLLVM_ENABLE_LTO=Yes` appears to be synonymous with `-DLLVM_ENABLE_LTO=Full` for Clang, leading to extremely long (and undesirable) build times when accidentally configured.
`-DLLVM_ENABLE_LTO=Yes` should either be an error (i.e. force an explicit `Thin` or `Full`), or do work to identify the ideal option on behalf of the user (e.g. `-flto=thin` for Clang, `-flto=auto` for GCC when available).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUsuOmzwUfhqzORoEJkBYsMgkk3-Tv92MKnU1MviAPXOwI18mk7evTKnaLtpubNnn8l30Ce_1bBB7Vj-y-pSJGJR1_fgqh2yw8t6zpng4XS5f_n95-nR4vDy9XJ4_s-r0FT1rChDXKwrnIVgYEPzdWHNfbPRw00HBH2bPkSgNT9bBkYSZGT8CoZDazGkTfgSHC9IdyJoZGN8LIyEaiV47MRAy3sEQNUkIekEPN4UGxDhqiSYIojuM1kx6jg5lzooTKw7b-VcxXtlIElAHhS7pEQbQOesSBZ1jnhiP378_rqRHHZLEZ6VNGk99TbGJY7xLqqwDaeFm3VsStvLT0x2CwvQQBPYatDVgDQyoBE1gp7UaPa6wmM_56uNEwbLqFDaw37z7pS5isD_q_x2PmzXvQtNmXJ7JvpJd1YkM-7Itat6Uddtmque8lVVdjqUosN6PDba475qmHFqJFccq0z0v-K4oy13Z7ZqyzbuxqaaCtwJl2zRTzXYFLkJTTvS-5NbNmfY-Yt_uy7LMSAxIfg0a5-Mi3pBxnjLn-tT_MMTZs11B2gf_c0PQgfAfKVTCr6bdXMqLxElECll01KsQrp5VB8bPjJ9nHVQc8tEujJ8TwnY9XJ19xTEwfl4Je8bPK-dvAQAA__9tovxu">