summaryrefslogtreecommitdiff
path: root/gnu/packages/benchmark.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-11-06 00:09:30 +0100
committerMarius Bakke <marius@gnu.org>2021-11-06 17:46:37 +0100
commit290a7664b58d2a018096c6388ae3468eb4cd88ec (patch)
tree052b73558fd55db98d0d3457728c6204dee155ed /gnu/packages/benchmark.scm
parent75f2eb41ccd21fd38dc371830d93fc63083a83b4 (diff)
gnu: fio: Disable native CPU compiler optimizations.
* gnu/packages/benchmark.scm (fio)[arguments]: Add #:configure-flags. Adjust configure phase accordingly.
Diffstat (limited to 'gnu/packages/benchmark.scm')
-rw-r--r--gnu/packages/benchmark.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm
index e355a47d4e7..9741814c827 100644
--- a/gnu/packages/benchmark.scm
+++ b/gnu/packages/benchmark.scm
@@ -65,15 +65,17 @@
65 `(#:modules (,@%gnu-build-system-modules 65 `(#:modules (,@%gnu-build-system-modules
66 (ice-9 textual-ports)) 66 (ice-9 textual-ports))
67 #:test-target "test" 67 #:test-target "test"
68 #:configure-flags '("--disable-native") ;don't generate code for the build CPU
68 #:phases 69 #:phases
69 (modify-phases %standard-phases 70 (modify-phases %standard-phases
70 (replace 'configure 71 (replace 'configure
71 (lambda* (#:key outputs #:allow-other-keys) 72 (lambda* (#:key (configure-flags ''()) outputs #:allow-other-keys)
72 ;; The configure script doesn't understand some of the 73 ;; The configure script doesn't understand some of the
73 ;; GNU options, so we can't use #:configure-flags. 74 ;; GNU options, so we can't use the stock phase.
74 (let ((out (assoc-ref outputs "out"))) 75 (let ((out (assoc-ref outputs "out")))
75 (invoke "./configure" 76 (apply invoke "./configure"
76 (string-append "--prefix=" out))))) 77 (string-append "--prefix=" out)
78 configure-flags))))
77 ;; The main `fio` executable is fairly small and self contained. 79 ;; The main `fio` executable is fairly small and self contained.
78 ;; Moving the auxiliary scripts to a separate output saves ~100 MiB 80 ;; Moving the auxiliary scripts to a separate output saves ~100 MiB
79 ;; on the closure. 81 ;; on the closure.