summary refs log tree commit diff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-05-24 22:52:52 +0200
committerLudovic Courtès <ludo@gnu.org>2013-05-24 22:52:52 +0200
commite55ec43d8b98fed6c51d536c000f4fba72641c53 (patch)
tree421f467a7617c3534e2319d80d596670fff3a8d6 /doc/guix.texi
parent264218a47ed8f80eb516ae6b960de686ab32c226 (diff)
downloadguix-e55ec43d8b98fed6c51d536c000f4fba72641c53.tar.gz
build: Add `--target' option.
* guix/scripts/build.scm (derivations-from-package-expressions): Add
  `package-derivation' parameter.
  (show-help, %options): Add `--target'.
  (guix-build): Use `package-cross-derivation' when `--target' is
  passed.
* tests/guix-build.sh: Add dry-run test with `--target'.
* doc/guix.texi (Invoking guix build): Document `--target'.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 1cf5849dd3..cf54fe4215 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -1198,6 +1198,12 @@ different personalities.  For instance, passing
 @code{--system=i686-linux} on an @code{x86_64-linux} system allows users
 to build packages in a complete 32-bit environment.
 
+@item --target=@var{triplet}
+@cindex cross-compilation
+Cross-build for @var{triplet}, which must be a valid GNU triplet, such
+as @code{"mips64el-linux-gnu"} (@pxref{Configuration Names, GNU
+configuration triplets,, configure, GNU Configure and Build System}).
+
 @item --derivations
 @itemx -d
 Return the derivation paths, not the output paths, of the given