summaryrefslogtreecommitdiff
path: root/module/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-11-21 21:55:13 +0100
committerLudovic Courtès <ludo@gnu.org>2011-11-22 00:22:46 +0100
commite0a9f02224cdcf0e8e24616038aca905d31b60a7 (patch)
treed813c57eef79475430b0a0df0ca902344cd86b5e /module/system
parentf0d1bacd786147c73862ab3f5ca2155b6f88888e (diff)
downloadguile-e0a9f02224cdcf0e8e24616038aca905d31b60a7.tar.gz
Fix `validate-target' in (system base target).
* module/system/base/target.scm (validate-target): Accept any tuple with at least 3 parts. * test-suite/tests/asm-to-bytecode.test (test-triplet): New procedure. ("cross-compilation"): New test prefix.
Diffstat (limited to 'module/system')
-rw-r--r--module/system/base/target.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 573ccca46..68c92d854 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -42,7 +42,7 @@
(define (validate-target target)
(if (or (not (string? target))
(let ((parts (string-split target #\-)))
- (or (< 3 (length parts))
+ (or (< (length parts) 3)
(or-map string-null? parts))))
(error "invalid target" target)))