mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: uftrace: Use (ice-9 match).
* gnu/packages/instrumentation.scm (uftrace)[arguments]: Prefer MATCH over COND.
This commit is contained in:
parent
5237abd7ce
commit
bc93884523
1 changed files with 6 additions and 3 deletions
|
@ -552,6 +552,9 @@ (define-public uftrace
|
|||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:modules
|
||||
`((ice-9 match)
|
||||
,@%gnu-build-system-modules)
|
||||
#:make-flags
|
||||
#~(list
|
||||
(string-append "CC=" #$(cc-for-target)))
|
||||
|
@ -568,9 +571,9 @@ (define-public uftrace
|
|||
(or (%current-target-system)
|
||||
(%current-system))))))
|
||||
(setenv "ARCH"
|
||||
(cond
|
||||
((string=? arch "arm64") "aarch64")
|
||||
(else arch)))
|
||||
(match arch
|
||||
("arm64" "aarch64")
|
||||
(_ arch)))
|
||||
(when target
|
||||
(setenv "CROSS_COMPILE" (string-append target "-"))))
|
||||
(setenv "SHELL" (which "sh"))
|
||||
|
|
Loading…
Reference in a new issue