[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54235] [PATCH v2 2/3] gnu: Add ck.
From: |
Maxime Devos |
Subject: |
[bug#54235] [PATCH v2 2/3] gnu: Add ck. |
Date: |
Tue, 08 Mar 2022 10:45:12 +0100 |
User-agent: |
Evolution 3.38.3-1 |
Maxim Cournoyer schreef op ma 07-03-2022 om 23:38 [-0500]:
> + (define (gnu-triplet->machine target)
> + (letrec-syntax
> + ((matches (syntax-rules (=>)
> + ((_ (target-prefix => machine) rest ...)
> + (if (string-prefix? target-prefix target)
> + machine
> + (matches rest ...)))
> + ((_)
> + (error "unsupported target" target)))))
> + ;; This basically reproduces the logic handling the
> + ;; PLATFORM variable in the configure script.
> + (matches ("x86_64" => "x86_64")
> + ("i586" => "x86")
> + ("i686" => "x86")
> + ("aarch64" => "aarch64")
> + ("arm" => "arm")
> + ("ppc64" => "ppc64")
> + ("ppc" => "ppc")
> + ("s390x" => "s390x")
> + ("sparc64" => "sparcv9"))))
I would move this outside the build code, such that new targets can be
added without having to rebuild ck and dependents. Also, there are a
few 'target-foo?' procedures in (guix utils) that can be used here (if
it were moved outisde the build code).
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#54235] [PATCH 2/3] gnu: Add ck., (continued)
[bug#54235] [PATCH 3/3] gnu: Add sysbench., Maxim Cournoyer, 2022/03/03
[bug#54235] [PATCH v2 1/3] gnu: docbook-xml-4.1.2: Install an XML catalog file., Maxim Cournoyer, 2022/03/07
[bug#54235] [PATCH v2 2/3] gnu: Add ck., Maxime Devos, 2022/03/08
[bug#54235] [PATCH v2 2/3] gnu: Add ck., Maxim Cournoyer, 2022/03/08
[bug#54235] [PATCH v2 3/3] gnu: Add sysbench., Maxim Cournoyer, 2022/03/07
[bug#54235] [PATCH v3 1/4] gnu: docbook-xml-4.1.2: Install an XML catalog file., Maxim Cournoyer, 2022/03/08