<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149814>149814</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
How to cross-build libclc standalone
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rossburton
</td>
</tr>
</table>
<pre>
I want to cross-compile `libclc` standalone.
>From my understanding of the CMake rules, this isn't trivial as `prepare_builtins` is only built for the build host in a cross configuration during non-standalone builds where `setup_host_tool` is used. In standalone builds, `prepare_builtins` is build as a standard binary and as such is built for the target, not the build host.
Can `setup_host_tool` be used in standalone builds?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0kk-PmzAQxT-NuYwSGUP-cPBhuxXqHvoZVjZMwK2xkWe8Ub59ZZIqVVd7QjC8N783eobITQFRi8M3cfhemcxzTDpFIpsTx1DZON70G1xNYOAIQxnthrisziOIo_TODn4QRwnEJozGx4B7IV-EfOlTXGC5QQ4jpm3qwgTxAjwjvP40vxFS9khCvQLPjsBREOrEwMl9OOPBUNmwJlxNwnebnWcXqOxyBDH4G2zf4BLT5lneRpgjMbgA5g4LQwwXN-Vk2MUAY06FIsSwewLflQTXGdOWipDz-l6c3jlG_1iZCcc9vAX4pCwRvka9cxkC81CmEawLJt3AhG1AeZj__vnMwyZNyMU7RP4v4ePGryZ8wWtx4y2X-Izb9NWom7FrOlOhrk-HppZtLWU166O0VnZNh6ikPJ67uj0ra5RE216a03CpnFZSHeRJ1XWj6lbu5fkwnDuJaJqT6upGtBIX4_ze-49lH9NUOaKMum67c91W3lj0tDVOqYBX2KZCqVLApItoZ_NEopXeEdPThh171D_i9dnE-0HuJfwnZ5WT1zPzSqJ5EaoXqp8cz9nuh7gI1RfLx2O3pvgLBxaq30BIqP5B-qHVnwAAAP__OXwO_Q">