guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: pcc: Respect --without-tests.


From: guix-commits
Subject: 02/02: gnu: pcc: Respect --without-tests.
Date: Thu, 11 Aug 2022 04:27:17 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit fba67be225e2c8d2f4fb6455042c84b18ad59b89
Author: ( <paren@disroot.org>
AuthorDate: Mon Aug 8 20:08:39 2022 +0100

    gnu: pcc: Respect --without-tests.
    
    * gnu/packages/c.scm (pcc)[arguments]<#:phases>{check}: Respect the
      `tests?` argument.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/c.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 113a331070..39f048e993 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -197,8 +197,9 @@ standard.")
                    (substitute* (list "cc/ccom/scan.l" "cc/cxxcom/scan.l")
                      (("lineno, ") ""))))
                (replace 'check
-                 (lambda _
-                   (invoke "make" "-C" "cc/cpp" "test"))))))
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "make" "-C" "cc/cpp" "test")))))))
     (native-inputs (list bison flex))
     (synopsis "Portable C compiler")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]