mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: rust: Don't build for "native" arch on ARM.
* gnu/packages/rust.scm (rust-1.23)<#:phases>[dont-build-native]: New phase.
This commit is contained in:
parent
af4ea9c5cb
commit
67ca98ec78
1 changed files with 6 additions and 0 deletions
|
@ -351,6 +351,12 @@ (define-public rust-1.23
|
|||
(substitute-keyword-arguments (package-arguments rust-1.19)
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(add-after 'unpack 'dont-build-native
|
||||
(lambda _
|
||||
;; XXX: Revisit this when we use gcc 6.
|
||||
(substitute* "src/binaryen/CMakeLists.txt"
|
||||
(("ADD_COMPILE_FLAG\\(\\\"-march=native\\\"\\)") ""))
|
||||
#t))
|
||||
(add-after 'patch-tests 'patch-cargo-tests
|
||||
(lambda _
|
||||
(substitute* "src/tools/cargo/tests/build.rs"
|
||||
|
|
Loading…
Reference in a new issue