gnu: rust-1.69: Fix building on powerpc64le-linux.
* gnu/packages/rust.scm (rust-1.69)[source]: Adjust snippet to fix building rustix on all architectures. Change-Id: I541767f19740b954e8c0f631bd5e77743ae3fb14
This commit is contained in:
parent
b3b273ff89
commit
c4f676b24e
@ -763,6 +763,15 @@ safety and thread safety guarantees.")
|
||||
'("src/llvm-project"
|
||||
"vendor/openssl-src/openssl"
|
||||
"vendor/tikv-jemalloc-sys/jemalloc"))
|
||||
;; Adjust rustix to always build with cc.
|
||||
(substitute* '("Cargo.lock"
|
||||
"src/bootstrap/Cargo.lock")
|
||||
(("\"errno\",") "\"cc\",\n \"errno\","))
|
||||
;; Add a dependency on the the 'cc' feature of rustix.
|
||||
(substitute* "vendor/fd-lock/Cargo.toml"
|
||||
(("\"fs\"") "\"fs\", \"cc\""))
|
||||
(substitute* "vendor/is-terminal/Cargo.toml"
|
||||
(("\"termios\"") "\"termios\", \"cc\""))
|
||||
;; Also remove the bundled (mostly Windows) libraries.
|
||||
(for-each delete-file
|
||||
(find-files "vendor" "\\.(a|dll|exe|lib)$")))))))))
|
||||
|
Loading…
Reference in New Issue
Block a user