diff options
author | Marius Bakke <mbakke@fastmail.com> | 2018-04-08 21:53:22 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2018-04-08 22:32:24 +0200 |
commit | 33d82486d5054b6c44cc40043bb552b71bbaef42 (patch) | |
tree | 5c4812becfbfcd2e48c91d5a8f31d5c7329b176b /gnu/packages | |
parent | 17f93ba1223257ac6352e7d40bf7bb99b23d0b97 (diff) | |
download | guix-patches-33d82486d5054b6c44cc40043bb552b71bbaef42.tar guix-patches-33d82486d5054b6c44cc40043bb552b71bbaef42.tar.gz |
gnu: vc: Do not optimize for the build machine CPU.
* gnu/packages/maths.scm (vc)[arguments]: Add "-DTARGET_ARCHITECTURE=none" to
#:configure-flags.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/maths.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8db4a5594b..f4ebd886be 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -3539,7 +3539,11 @@ supports compressed MAT files, as well as newer (version 7.3) MAT files.") (build-system cmake-build-system) (arguments '(#:configure-flags - '("-DBUILD_TESTING=ON"))) + '("-DBUILD_TESTING=ON" + ;; By default, Vc will optimize for the CPU of the build machine. + ;; Setting this to "none" makes it create portable binaries. See + ;; "cmake/OptimizeForArchitecture.cmake". + "-DTARGET_ARCHITECTURE=none"))) (synopsis "SIMD vector classes for C++") (description "Vc provides portable, zero-overhead C++ types for explicitly data-parallel programming. It is a library designed to ease explicit |