Browse Source

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

* guix/build/compile.scm (optimization-options): Add "gnu/tests/" to
level 0.
wip-hurd-vm
Ludovic Courtès 2 years ago
parent
commit
49143297fc
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 3
      guix/build/compile.scm

3
guix/build/compile.scm

@ -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

Loading…
Cancel
Save