From e55ec43d8b98fed6c51d536c000f4fba72641c53 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 24 May 2013 22:52:52 +0200 Subject: 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'. --- tests/guix-build.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3