compile: Do not optimize "gnu/tests/*".

* guix/build/compile.scm (optimization-options): Add "gnu/tests/" to
level 0.
This commit is contained in:
Ludovic Courtès 2020-05-25 22:59:22 +02:00
parent 2c402b1a15
commit 49143297fc
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -98,7 +98,8 @@
(define (override-option option value lst)
`(,option ,value ,@(strip-option option lst)))
(cond ((string-contains file "gnu/packages/")
(cond ((or (string-contains file "gnu/packages/")
(string-contains file "gnu/tests/"))
;; Level 0 is good enough but partial evaluation helps preserve the
;; "macro writer's bill of rights".
(override-option #:partial-eval? #t