diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-04-15 10:03:11 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-04-15 10:21:01 +0200 |
| commit | 5b158ddca9425d79ea4ceb374003fe0f7e6bd336 (patch) | |
| tree | 2306aff6f3be54432c61e3cb54d429b1e734447a | |
| parent | 46eb47eb728658ca3f0722f72590c7314d5dc221 (diff) | |
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
| -rw-r--r-- | guix/build/compile.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/compile.scm b/guix/build/compile.scm index 5b27b55d027..f90016b9ae8 100644 --- a/guix/build/compile.scm +++ b/guix/build/compile.scm @@ -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 |
