guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/09: gnu: looking-glass-client: Disable CPU-specific optimizations.


From: guix-commits
Subject: 02/09: gnu: looking-glass-client: Disable CPU-specific optimizations.
Date: Fri, 18 Oct 2019 08:44:11 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 43beec19f4f3e632a10c44127d0ff94b0a1c3214
Author: Marius Bakke <address@hidden>
Date:   Fri Oct 18 11:49:05 2019 +0200

    gnu: looking-glass-client: Disable CPU-specific optimizations.
    
    * gnu/packages/virtualization.scm (looking-glass-client)[source](modules,
    snippet): New fields.
---
 gnu/packages/virtualization.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index fd442bd..a350488 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -817,7 +817,17 @@ Machine Protocol.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "02bq46ndmzq9cihazzn7xq1x7q5nzm7iw4l9lqzihxcxp9famkhw"))))
+         "02bq46ndmzq9cihazzn7xq1x7q5nzm7iw4l9lqzihxcxp9famkhw"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Do not create binaries optimized for the CPU of the build 
machine,
+           ;; for reproducibility and compatibility.  TODO: in the next version
+           ;; of looking glass, this is exposed as a CMake configure option.
+           (substitute* "client/CMakeLists.txt"
+             (("-march=native")
+              ""))
+           #t))))
      (build-system cmake-build-system)
      (inputs `(("fontconfig" ,fontconfig)
                ("glu" ,glu)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]