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

    <tr>
        <th>Summary</th>
        <td>
            LLVM_NATIVE_ARCH determined based on host triple instead of target triple
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          jpalus
      </td>
    </tr>
</table>

<pre>
    `LLVM_NATIVE_ARCH` defaults to `LLVM_TARGET_ARCH` which suggests (and that's how it's actually used) it should be arch of target platform. However if `LLVM_TARGET_ARCH` is not set (defaults to value `host`) then `LLVM_NATIVE_ARCH` is inferred from `LLVM_HOST_TRIPLE` which is host platform. Is there any reason why it's not derived from `LLVM_DEFAULT_TARGET_TRIPLE` instead?
https://github.com/llvm/llvm-project/blob/0a832ba5c2ef01e91e4e79b2681b95b7dab18ead/llvm/cmake/config-ix.cmake#L418-L421
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU0uP2jAQ_jXOxVqUOIQkhxxogYJEH9rSvaJxPEm8NTGyHSj_vhO27KKV9lAp0jgz4-8xtqVVl4rN4u326ev-23y3eVru54-f15TiChsYTPA8WH5r2c0fvyx3ry3nTtcd90PboqdGJgroFQ8dBCZyzzt75vplCXUYwJgLHzwqJkrKc9_ZwSgukYMjGNvwAK7FwI8GQmPdYcLX9owndFw3H0nQnveWsGgb0d9rPoEZcNzWWR8ojKyhw55_4JeQdN-gc6h44-zhtW_9_eduv3vc_Ngu30zr0Z6_17rxI7wjN_2FOwRve-q93CYwqlTo9Ok9_GK5mv_a7m7G3oh07wOCYumKxQsWz7sQjp6lcyZW9LU6dIOc1PZAP8acbuHh6Owz1kS6ksZKCjEUqZCQ1QKbOMEywSnmpRSzIpFlJnMFMilGolec-gC_cYy2b3T7oP9M_mXS7TQpHrZTkUSqSlWZlhAFHQxW7ydKXgO6g-7JrgQ6dE7juE4sOH00eHN3d-wvhWhwpvpvq9r7AT0tsqyYiairajFNE3LYiELWCRR5nWe5LGOEpMwzKCMDEo2vWPaJCdEj3dQRgtYsW0S6ErEQ8SxOk3w6E7NJUkCcKolJnSupGsWmMR5Am8moY2JdG7nqKkkOraei0fQg3orgvW57xCsd4cMQOuuq5yPdUR9dmaur8r-dziWh">