gnu: make-rust-sysroot: Update for rust-1.90.

* gnu/packages/rust.scm (make-rust-sysroot/implementation)[arguments]:
Adjust the mingw specific phases to update for the newer rust version.

Change-Id: I406d0d417b016567639533a392de7832646d2763
This commit is contained in:
Efraim Flashner 2025-11-16 11:57:25 +02:00
parent c0d989c4ea
commit 10c880974b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1987,17 +1987,7 @@ exec -a \"$0\" \"~a\" \"$@\""
(delete
(string-append mingw "/include")
(string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
":")))
;; When building a rust-sysroot this crate is only used for
;; the rust-installer.
(substitute* '("vendor/num_cpus-1.13.0/src/linux.rs"
"vendor/num_cpus-1.13.1/src/linux.rs"
"vendor/num_cpus-1.16.0/src/linux.rs")
(("\\.ceil\\(\\)") ""))
;; gcc doesn't recognize this flag.
(substitute*
"compiler/rustc_target/src/spec/base/windows_gnullvm.rs"
((", \"--unwindlib=none\"") "")))))
":"))))))
`())
(replace 'set-env
(lambda* (#:key inputs #:allow-other-keys)