diff options
author | Adam Joseph <54836058+a-m-joseph@users.noreply.github.com> | 2022-04-03 17:43:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 17:43:52 +0000 |
commit | 7dbe7487b675d594ede82be4175a44a2bfab8498 (patch) | |
tree | ffbcf3d5087587ea9ee88cb821ab4db68accff71 /doc | |
parent | c9d66a7fff7a683182fdd5738d02a00b8b2bfdeb (diff) | |
download | nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.tar nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.tar.gz nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.tar.bz2 nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.tar.lz nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.tar.xz nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.tar.zst nixlib-7dbe7487b675d594ede82be4175a44a2bfab8498.zip |
Update doc/stdenv/cross-compilation.chapter.md
Co-authored-by: Ben Siraphob <bensiraphob@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/stdenv/cross-compilation.chapter.md | 22 |
1 files 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. |