From fd83edf8a10940fa0a6175fab420690f0072ad91 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 31 Oct 2022 10:39:28 +0100 Subject: 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 --- guix/build-system/scons.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guix/build-system') diff --git a/guix/build-system/scons.scm b/guix/build-system/scons.scm index e38213e8e0..7a02fa8a0f 100644 --- a/guix/build-system/scons.scm +++ b/guix/build-system/scons.scm @@ -100,7 +100,9 @@ provides a 'SConstruct' file as its build system." #$(with-build-variables inputs outputs #~(scons-build #:name #$name #:source #+source - #:scons-flags #$(sexp->gexp scons-flags) + #:scons-flags #$(if (pair? scons-flags) + (sexp->gexp scons-flags) + scons-flags) #:system #$system #:build-targets #$build-targets #:test-target #$test-target -- cgit v1.2.3