mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 15:37:54 -05:00
build-system/meson: Allow 'configure-flags' to be a G-exp.
* guix/build-system/meson.scm (meson-build, meson-cross-build): Only call 'sexp->gexp' on 'configure-flags' when 'configure-flags' is a pair.
This commit is contained in:
parent
c3db377d2b
commit
fa81c31ce9
1 changed files with 7 additions and 2 deletions
|
@ -212,7 +212,10 @@ (define build-phases
|
|||
(map search-path-specification->sexp
|
||||
search-paths))
|
||||
#:phases build-phases
|
||||
#:configure-flags #$(sexp->gexp configure-flags)
|
||||
#:configure-flags
|
||||
#$(if (pair? configure-flags)
|
||||
(sexp->gexp configure-flags)
|
||||
configure-flags)
|
||||
#:build-type #$build-type
|
||||
#:tests? #$tests?
|
||||
#:test-target #$test-target
|
||||
|
@ -309,7 +312,9 @@ (define build-phases
|
|||
#:phases build-phases
|
||||
#:make-dynamic-linker-cache? #$make-dynamic-linker-cache?
|
||||
#:configure-flags `("--cross-file" #+cross-file
|
||||
,@#$(sexp->gexp configure-flags))
|
||||
,@#$(if (pair? configure-flags)
|
||||
(sexp->gexp configure-flags)
|
||||
configure-flags))
|
||||
#:build-type #$build-type
|
||||
#:tests? #$tests?
|
||||
#:test-target #$test-target
|
||||
|
|
Loading…
Reference in a new issue