[PATCH] D142404: [docs] Prefer setting LLVM_HOST_TRIPLE instead of LLVM_DEFAULT_TARGET_TRIPLE and LLVM_TARGET_ARCH

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 15:17:12 PST 2023


phosek added a comment.

In D142404#4075020 <https://reviews.llvm.org/D142404#4075020>, @mstorsjo wrote:

> In D142404#4074990 <https://reviews.llvm.org/D142404#4074990>, @beanz wrote:
>
>> In D142404#4074985 <https://reviews.llvm.org/D142404#4074985>, @mstorsjo wrote:
>>
>>> No, here I disagree. `LLVM_HOST_TRIPLE` is documented as `Host on which LLVM binaries will run`, not as the host where I'm currently compiling it. We can easily infer the details of the OS where we're doing the build, but usually much less so for the cross target, where the cross compiled LLVM will run.
>>
>> Ooof... That is the most terribly named variable ever. You are right. I kinda hate the idea of documenting this because that variable name is unnecessarily confusing.
>
> Yeah, it's not really great - but changing it would be kinda a lot of churn for all users who are cross compiling LLVM.

I think that name comes from autoconf <https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Specifying-Target-Triplets.html> which uses //build// (machine where the software is being built), //host// (machine where the software is going to run) and //target// (machine we're going to generate code for).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142404/new/

https://reviews.llvm.org/D142404



More information about the llvm-commits mailing list