1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-23 18:50:32 +02:00

compile: Use ‘-O2 -Ono-letrectify’ for ‘gnu/home/services’.

Partly fixes <https://issues.guix.gnu.org/74748>.

* guix/build/compile.scm (optimization-options): Add ‘gnu/home/services’
alongside ‘gnu/services’.

Reported-by: Tomas Volf <~@wolfsden.cz>
Change-Id: I7140c791e66f062093a32f4baf9199345560de9d
This commit is contained in:
Ludovic Courtès
2025-04-15 10:03:11 +02:00
parent 46eb47eb72
commit 5b158ddca9

View File

@@ -127,7 +127,8 @@
;; Use '-O1' to have partial evaluation and primitive inlining so we
;; can honor the "macro writer's bill of rights".
(optimizations-for-level 1))
((string-contains file "gnu/services/")
((or (string-contains file "gnu/services/")
(string-contains file "gnu/home/services/"))
;; '-O2 -Ono-letrectify' compiles about ~20% faster than '-O2' for
;; large files like gnu/services/mail.scm.
(override-option #:letrectify? #f