build-system/scons: Allow using a G-exp for scons-flags.

* guix/build-system/scons.scm (scons-build): Only call sexp->gexp on
scons-flags when scons-flags is a pair.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Timotej Lazar 2022-10-31 10:39:28 +01:00 committed by Christopher Baines
parent 754f260753
commit fd83edf8a1
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -100,7 +100,9 @@ (define builder
#$(with-build-variables inputs outputs #$(with-build-variables inputs outputs
#~(scons-build #:name #$name #~(scons-build #:name #$name
#:source #+source #:source #+source
#:scons-flags #$(sexp->gexp scons-flags) #:scons-flags #$(if (pair? scons-flags)
(sexp->gexp scons-flags)
scons-flags)
#:system #$system #:system #$system
#:build-targets #$build-targets #:build-targets #$build-targets
#:test-target #$test-target #:test-target #$test-target