summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-05-25 22:59:22 +0200
committerLudovic Courtès <ludo@gnu.org>2020-05-25 23:00:31 +0200
commit49143297fcf4b2ca1172924f25137b08b0eecf58 (patch)
tree79dd66b4e44b3a6b9a799af23b36fc00025ecedb
parent2c402b1a156f13e6377671c1d0eb4437806b96ea (diff)
downloadguix-49143297fcf4b2ca1172924f25137b08b0eecf58.tar.gz
compile: Do not optimize "gnu/tests/*".
* guix/build/compile.scm (optimization-options): Add "gnu/tests/" to
level 0.
-rw-r--r--guix/build/compile.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/compile.scm b/guix/build/compile.scm
index 63f24fa7d4..ea7e1d2d03 100644
--- a/guix/build/compile.scm
+++ b/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