From fba67be225e2c8d2f4fb6455042c84b18ad59b89 Mon Sep 17 00:00:00 2001 From: "(" Date: Mon, 8 Aug 2022 20:08:39 +0100 Subject: gnu: pcc: Respect --without-tests. * gnu/packages/c.scm (pcc)[arguments]<#:phases>{check}: Respect the `tests?` argument. Signed-off-by: Mathieu Othacehe --- gnu/packages/c.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/c.scm') 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 -- cgit v1.2.3