diff mbox series

[bug#58920,1/2] build-system/scons: Allow using a G-exp for scons-flags.

Message ID 20221031093929.23368-1-timotej.lazar@araneo.si
State New
Headers show
Series Update endless-sky | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success
cbaines/issue success View issue

Commit Message

Timotej Lazar Oct. 31, 2022, 9:39 a.m. UTC
* guix/build-system/scons.scm (scons-build): Only call sexp->gexp on
scons-flags when scons-flags is a pair.
---
 guix/build-system/scons.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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 @@  (define builder
           #$(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