diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2025-09-02 19:23:10 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-09-02 20:36:21 +0300 |
| commit | 520ba1b90467cc9839d9cad9a097c0d5600aaff5 (patch) | |
| tree | 32046e235fa6ff001732c8c6ea91c6a47ec53d22 /gnu | |
| parent | a407d3f8bd6e1a9e59f83f8f40799396724af165 (diff) | |
gnu: target->hare-arch: Check for system support before target support.
This fixes bug #2449.
* gnu/packages/hare.scm (target->hare-arch): Only when building on a
supported system check if the target is supported by hare.
Change-Id: I9bb2bd32a204043ce2702a206598398fbd0541eb
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/hare.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/packages/hare.scm b/gnu/packages/hare.scm index 4af08237f5f..02b884527d9 100644 --- a/gnu/packages/hare.scm +++ b/gnu/packages/hare.scm @@ -39,10 +39,13 @@ (define* (target->hare-arch #:optional (target (or (%current-target-system) (%current-system)))) - (cond ((target-x86-64? target) "x86_64") - ((target-aarch64? target) "aarch64") - ((target-riscv64? target) "riscv64") - (else (error "unsupported hare target" target)))) + ;; Only error on supported systems, so we don't break guix pull. + (if (member (%current-system) hare-supported-systems) + (cond ((target-x86-64? target) "x86_64") + ((target-aarch64? target) "aarch64") + ((target-riscv64? target) "riscv64") + (else (error "unsupported hare target" target))) + "")) (define (cross-target? target) ; only has to work for supported arches (and target (not (if (%current-target-system) |
