mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 14:26:13 +01:00
gnu: rust-1.72: Fix building on powerpc64le-linux.
* gnu/packages/rust.scm (rust-1.72)[source]: Adjust snippet to fix building rustix on all architectures. Change-Id: If8e6b5c4d0c29d2ee2fdfe58fa7d4d2c1585740e
This commit is contained in:
parent
4e058aa7e8
commit
6302731750
1 changed files with 4 additions and 1 deletions
|
@ -868,7 +868,10 @@ safety and thread safety guarantees.")
|
||||||
;; Also remove the bundled (mostly Windows) libraries.
|
;; Also remove the bundled (mostly Windows) libraries.
|
||||||
(for-each delete-file
|
(for-each delete-file
|
||||||
(find-files "vendor" "\\.(a|dll|exe|lib)$"))
|
(find-files "vendor" "\\.(a|dll|exe|lib)$"))
|
||||||
;; Adjust rustc_driver to explicitly use rustix with libc backend.
|
;; Adjust some crates to explicitly use rustix with the libc backend.
|
||||||
|
(substitute* '("vendor/is-terminal/Cargo.toml"
|
||||||
|
"vendor/is-terminal-0.4.7/Cargo.toml")
|
||||||
|
(("\"termios\"") "\"termios\", \"use-libc\""))
|
||||||
(substitute* "compiler/rustc_driver/Cargo.toml"
|
(substitute* "compiler/rustc_driver/Cargo.toml"
|
||||||
(("rustix = \"=0.37.11\"")
|
(("rustix = \"=0.37.11\"")
|
||||||
(string-append "rustix = { version = \"=0.37.11\","
|
(string-append "rustix = { version = \"=0.37.11\","
|
||||||
|
|
Loading…
Add table
Reference in a new issue