From 7dbe7487b675d594ede82be4175a44a2bfab8498 Mon Sep 17 00:00:00 2001 From: Adam Joseph <54836058+a-m-joseph@users.noreply.github.com> Date: Sun, 3 Apr 2022 17:43:52 +0000 Subject: [PATCH] Update doc/stdenv/cross-compilation.chapter.md Co-authored-by: Ben Siraphob --- doc/stdenv/cross-compilation.chapter.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/stdenv/cross-compilation.chapter.md b/doc/stdenv/cross-compilation.chapter.md index 9b5abbdc2fa6..3b6e5c34d54d 100644 --- a/doc/stdenv/cross-compilation.chapter.md +++ b/doc/stdenv/cross-compilation.chapter.md @@ -86,17 +86,17 @@ Only nine dependency types matter in practice: #### Possible dependency types {#possible-dependency-types} -| Dependency type | Dependency’s host platform | Dependency’s target platform | -|---------------------|----------------------------|------------------------------| -| build→ * | build | (none) | -| build→ build | build | build | -| build→ host | build | host | -| build→ target | build | target | -| host→ * | host | (none) | -| host→ host | host | host | -| host→ target | host | target | -| target→ * | target | (none) | -| target→ target | target | target | +| Dependency type | Dependency’s host platform | Dependency’s target platform | +|-----------------|----------------------------|------------------------------| +| build → * | build | (none) | +| build → build | build | build | +| build → host | build | host | +| build → target | build | target | +| host → * | host | (none) | +| host → host | host | host | +| host → target | host | target | +| target → * | target | (none) | +| target → target | target | target | Let's use `g++` as an example to make this table clearer. `g++` is a C++ compiler written in C. Suppose we are building `g++` with a `(build, host, target)` platform triple of `(foo, bar, baz)`. This means we are using a `foo`-machine to build a copy of `g++` which will run on a `bar`-machine and emit binaries for the `baz`-machine.