summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-06-22 16:15:23 +0200
committerLudovic Courtès <ludo@gnu.org>2013-06-22 16:15:23 +0200
commit2f41f51c401cc45842218a801891a71a64416ef0 (patch)
treed3c8d2baf305924a9ab5b9861fa16da5ef0955ec /guix/build
parent4ca968eb954c0a8c166c8cd390024cdafdb9e416 (diff)
downloadgnu-guix-2f41f51c401cc45842218a801891a71a64416ef0.tar
gnu-guix-2f41f51c401cc45842218a801891a71a64416ef0.tar.gz
build-system/gnu: Set #:tests? to #f when cross-compiling.
* guix/build/gnu-build-system.scm (check): Add `target' formal parameter. Change `tests?' to default to (not target).
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/gnu-build-system.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm
index 8ccf27a1b1..bed498dfef 100644
--- a/guix/build/gnu-build-system.scm
+++ b/guix/build/gnu-build-system.scm
@@ -214,8 +214,8 @@ makefiles."
'())
,@make-flags))))
-(define* (check #:key (make-flags '()) (tests? #t) (test-target "check")
- (parallel-tests? #t)
+(define* (check #:key target (make-flags '()) (tests? (not target))
+ (test-target "check") (parallel-tests? #t)
#:allow-other-keys)
(if tests?
(zero? (apply system* "make" test-target