From d3f6c14535163be65aedfc761b747c4386387537 Mon Sep 17 00:00:00 2001 From: Efraim Flashner
Date: Thu, 22 Mar 2018 09:14:53 +0200 Subject: [PATCH] don't build native on arm* --- gnu/packages/rust.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index ae81ff8e0..5c5a61594 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -259,6 +259,11 @@ rustc-bootstrap and cargo-bootstrap packages.") ;; guix llvm-3.9.1 package installs only shared libraries (setenv "LLVM_LINK_SHARED" "1") #t)) + (add-after 'unpack 'dont-build-native + (lambda _ + (substitute* "src/binaryen/CMakeLists.txt" + (("ADD_COMPILE_FLAG\\(\\\"-march=native\\\"\\)") "")) + #t)) (add-after 'unpack 'patch-tests (lambda* (#:key inputs #:allow-other-keys) (let ((bash (assoc-ref inputs "bash"))) -- 2.16.2