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: If8e6b5c4d0c29d2ee2fdfe58fa7d4d2c1585740emaster
parent
4e058aa7e8
commit
6302731750
|
@ -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\","
|
||||||
|
|
Reference in New Issue