guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 07/08: compile: Do not optimize "gnu/tests/*".
Date: Mon, 25 May 2020 17:40:54 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 49143297fcf4b2ca1172924f25137b08b0eecf58
Author: Ludovic Courtès <address@hidden>
AuthorDate: Mon May 25 22:59:22 2020 +0200

    compile: Do not optimize "gnu/tests/*".
    
    * guix/build/compile.scm (optimization-options): Add "gnu/tests/" to
    level 0.
---
 guix/build/compile.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/build/compile.scm b/guix/build/compile.scm
index 63f24fa..ea7e1d2 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]