hydra: Do not cross-build from non-Intel platforms.
authorLudovic Courtès <ludo@gnu.org>
Fri, 29 Dec 2017 12:38:06 +0000 (13:38 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 29 Dec 2017 12:38:06 +0000 (13:38 +0100)
* build-aux/hydra/gnu-system.scm (hydra-jobs)[cross-jobs](pointless?):
Return #t on non-Intel.

build-aux/hydra/gnu-system.scm

index 04845a3..19371be 100644 (file)
@@ -317,8 +317,15 @@ valid."
 
     (define (pointless? target)
       ;; Return #t if it makes no sense to cross-build to TARGET from SYSTEM.
-      (and (string-contains target "mingw")
-           (not (string=? "x86_64-linux" system))))
+      (match system
+        ((or "x86_64-linux" "i686-linux")
+         (if (string-contains target "mingw")
+             (not (string=? "x86_64-linux" system))
+             #f))
+        (_
+         ;; Don't try to cross-compile from non-Intel platforms: this isn't
+         ;; very useful and these are often brittle configurations.
+         #t)))
 
     (define (either proc1 proc2 proc3)
       (lambda (x)