diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-05-24 22:52:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-05-24 22:52:52 +0200 |
commit | e55ec43d8b98fed6c51d536c000f4fba72641c53 (patch) | |
tree | 421f467a7617c3534e2319d80d596670fff3a8d6 /tests/guix-build.sh | |
parent | 264218a47ed8f80eb516ae6b960de686ab32c226 (diff) | |
download | patches-e55ec43d8b98fed6c51d536c000f4fba72641c53.tar patches-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 'tests/guix-build.sh')
-rw-r--r-- | tests/guix-build.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh index 721a7c6769..83de9f5285 100644 --- a/tests/guix-build.sh +++ b/tests/guix-build.sh @@ -51,6 +51,9 @@ then false; else true; fi rm -f "$result" +# Cross building. +guix build coreutils --target=mips64el-linux-gnu --dry-run --no-substitutes + # Parsing package names and versions. guix build -n time # PASS guix build -n time-1.7 # PASS, version found |