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

    <tr>
        <th>Summary</th>
        <td>
            -DLLVM_BUILD_32_BITS=On sets wrong default LLVM_HOST_TRIPLE
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          efriedma-quic
      </td>
    </tr>
</table>

<pre>
    See discussion on #54844.  The default here confuses the JIT, leading to regression test failures and other unexpected behavior.  It also influences LLVM_DEFAULT_TARGET_TRIPLE, since that's set to LLVM_HOST_TRIPLE by default; I'd normally expect a "32-bit" build to produce 32-bit binaries by default.

Not sure what the best way is to go about fixing this; currently, the way we figure out the host triple intentionally ignores the compiler in most cases.  I guess we could just hardcode handling for a few popular hosts: "x86_64", "aarch64", "riscv64", "powerpc64"/"powerpc64le"/"ppc64"/"ppc64le", and just print an error telling the user to figure out the right triple themselves for anything else.  Not great, but not sure what else we can do besides just removing the option.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdVF1z2joQ_TXmZScM-IOGBz8kIWm5Q9s7De0rI1uLrY6wfPUB4d_fI1Ea2hkG413t7tlzjmiMPNevzCSVa4NzygyET5YXVXlfllOibY8k70XQnnq2TK0Z9sGxI4_MP-ttlj-RZiHV0JE3ZLmzfGnk2XnaC6UDIiQGSQY1lsLAbyO3niU13IujMhaD1p6EdobUsNeBhxYlm82Pz7vV88vD9812t3349vEZj2_rfzfPcahTOAQUwmf5B0eOfZyfaj59fb2epOZ8xZ8Vj7TGWUmDsQeh9ZkuQEhg47zI7xqFXjk1QWkZm43WyIAhlxQ1ahBWAdh7z2k2W2Wzh8v3F-PJYVk6AVTip4kUnMSZlIv9OkOiMQGsqLfEV69cRNUGa3nw-hz3inWx5MQ41sV2sSJGe4Nu3qpRM2jyqADNaQ_VYaVfmrTmMCoNntVAh1jRCsgVGaYuQJrYuDUBG_4MyPbCytZIdIdCOqLaGwtG9nyi0YxBC5sGA-hDpOntfrFblPgRseIhhG3724CFlY63gdGc2I7tr9DLbUTze-zPEzfZp-SdBHa02BuvxNYCpWetLzwywZM2cvwXZ1Z1_W_SEDg41kcwlZYczlAA9awdg6CoH9wbDfUEE3j45FbQeCqRh_nSRG2VRKcEzPLBHK9QzBiFmU5kXchlsRQTr7zm-m6VzPn4fb1Z7Yp897jevmbF6usQvQtZrEH99a797eNJsLruvR-jDomjl075PjRT6I0XrY_Xxx1s-xO2xqtyDpLjB65zVU36WlZctlXV7HlZVnNZfWjzxbwtWublUtw3s4kWDfass-oR3A_wQGoRdahWE1XnszyflfN5Pq_yfDGV8yKXsiyX3BRts5hl5YwPuPHTiGNqbDexdYLUhM4hqRWM9J4U-KPoBuY0Dv1F8L2xNe9xy-RB3P0XVDtJAOq0wP-kRJDC">