diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm index 04d2241c79..13baf329df 100644 --- a/guix/build-system/meson.scm +++ b/guix/build-system/meson.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Peter Mikkelsen ;;; Copyright © 2018, 2019 Marius Bakke -;;; Copyright © 2021, 2022 Ludovic Courtès +;;; Copyright © 2021-2022, 2024 Ludovic Courtès ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2022 Efraim Flashner ;;; @@ -239,7 +239,9 @@ (define build-phases configure-flags) #:build-type #$build-type #:tests? #$tests? - #:test-options #$(sexp->gexp test-options) + #:test-options #$(if (pair? test-options) + (sexp->gexp test-options) + test-options) #:parallel-build? #$parallel-build? #:parallel-tests? #$parallel-tests? #:validate-runpath? #$validate-runpath? @@ -352,7 +354,9 @@ (define build-phases configure-flags)) #:build-type #$build-type #:tests? #$tests? - #:test-options #$(sexp->gexp test-options) + #:test-options #$(if (pair? test-options) + (sexp->gexp test-options) + test-options) #:parallel-build? #$parallel-build? #:parallel-tests? #$parallel-tests? #:validate-runpath? #$validate-runpath?