[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: gnu: cmake: Build an optimized executable.
From: |
guix-commits |
Subject: |
01/04: gnu: cmake: Build an optimized executable. |
Date: |
Sat, 25 Jan 2020 09:03:14 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit fa8e0a5387419ba1edd17722329cdb27b1371ccf
Author: Marius Bakke <address@hidden>
AuthorDate: Sat Jan 25 12:50:57 2020 +0100
gnu: cmake: Build an optimized executable.
* gnu/packages/cmake.scm (cmake-bootstrap)[arguments]: Pass
"-DCMAKE_BUILD_TYPE" in #:configure-flags.
---
gnu/packages/cmake.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf542f1..913317b 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -97,7 +97,11 @@
;; to --mandir and --docdir.
"--mandir=share/man"
,(string-append "--docdir=share/doc/cmake-"
- (version-major+minor version))))
+ (version-major+minor version))
+
+ ;; By default CMake is built without any optimizations. Use
+ ;; the recommended Release target for a ~2.5x speedup.
+ "--" "-DCMAKE_BUILD_TYPE=Release"))
#:make-flags
(let ((skipped-tests
(list "BundleUtilities" ; This test fails on Guix.