docs: Update to reference host_platform instead of target_platform#1496
docs: Update to reference host_platform instead of target_platform#1496mgorny wants to merge 1 commit into
host_platform instead of target_platform#1496Conversation
|
Thanks for the changes! I am wondering which one is "clearer" to the user ... |
|
I think cross-builds are inherently "hard" difficulty, and all terms are hard. In Gentoo, I personally went for explicit |
|
This change was basically prompted by regro/cf-scripts#3832 (comment) |
@isuruf has been making the case for following build/host/target (and fixing conda's inconsistent usage of these terms). This matches autotools conventions, but not only. For example, I like meson's write-up on this topic, which comes to the same conclusion. The "problem" is that the vast majority of cross-compiled cases (already not the most common concern itself) only care about two architectures - where it's built and where it's run. But if you use "target" for the latter, it becomes very confusing in those cases where the full generality is actually necessary (e.g. "canadian cross" compilers). This is, for example, why our compiler feedstocks need to hack around this by using In short: I agree that we should use v1 as an opportunity to clean up these inaccuracies, and +1 for using host_platform. |
|
I think the easiest way to explain to users is
|
cc90cdc to
5d679ef
Compare
|
Rebased and updated more occurrences. |
|
I am fine with merging this, but should we explain host and target platform somewhere? Specifically target platform? I also still think that on the CLI, setting |
I have a page I started writing recently; still need to finish up some bits and pieces, but it's getting there: conda-forge/conda-forge.github.io#2738 Feedback welcome! You can copy stuff from there for the r-b docs, or maybe simply refer to that page then. |
285bc9d to
3d11a32
Compare
|
Rebased. That said, I see that there's also some incorrect logic within |
|
Or rather, I feel like I should do that. However, it seems that the codebase is almost universally using |
Do you have a specific idea where to add this? IIRC the only relevant part of the docs is https://rattler-build.prefix.dev/latest/compilers/#cross-compilation which is updated here, or the command-line interface docs. I can expand either on the three platforms, though I suppose most of users won't need to know about "target" at all. |
Update the documentation throughout to replace the references to `target_platform` with `host_platform` where appropriate. That said, unless I've missed some fine point, this means pretty much everywhere. Signed-off-by: Michał Górny <mgorny@quansight.com>
3d11a32 to
afdcef3
Compare
Update the documentation throughout to replace the references to
target_platformwithhost_platformwhere appropriate. That said, unless I've missed some fine point, this means pretty much everywhere.