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
@ -552,6 +552,9 @@ whole-system symbolic access, and can also handle simple tracing jobs.")
|
|||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:modules
|
||||||
|
`((ice-9 match)
|
||||||
|
,@%gnu-build-system-modules)
|
||||||
#:make-flags
|
#:make-flags
|
||||||
#~(list
|
#~(list
|
||||||
(string-append "CC=" #$(cc-for-target)))
|
(string-append "CC=" #$(cc-for-target)))
|
||||||
@ -568,9 +571,9 @@ whole-system symbolic access, and can also handle simple tracing jobs.")
|
|||||||
(or (%current-target-system)
|
(or (%current-target-system)
|
||||||
(%current-system))))))
|
(%current-system))))))
|
||||||
(setenv "ARCH"
|
(setenv "ARCH"
|
||||||
(cond
|
(match arch
|
||||||
((string=? arch "arm64") "aarch64")
|
("arm64" "aarch64")
|
||||||
(else arch)))
|
(_ arch)))
|
||||||
(when target
|
(when target
|
||||||
(setenv "CROSS_COMPILE" (string-append target "-"))))
|
(setenv "CROSS_COMPILE" (string-append target "-"))))
|
||||||
(setenv "SHELL" (which "sh"))
|
(setenv "SHELL" (which "sh"))
|
||||||
|
Loading…
Reference in New Issue
Block a user