[bug#57060,v2,2/2] gnu: pcc: Respect --without-tests.
Commit Message
* gnu/packages/c.scm (pcc)[arguments]<#:phases>{check}: Respect the
`tests?` argument.
---
gnu/packages/c.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
> * gnu/packages/c.scm (pcc)[arguments]<#:phases>{check}: Respect the
> `tests?` argument.
Pushed both patches, thanks Maxime for reviewing.
Mathieu
@@ -197,8 +197,9 @@ (define-public pcc
(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