diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-23 14:01:45 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:26 +0200 |
| commit | 994fad6c5232a3b1508f53e5219ad0efa65a76bd (patch) | |
| tree | d323c218b44b5a2c92ea58c80995e25ff4e40d1d /gnu | |
| parent | 07bf7ea36c734f6713f3e4c9ca917a934d39ba7b (diff) | |
gnu: rust-1.74: Fix build on riscv64-linux.
* gnu/packages/rust.scm (rust-1.74)[arguments]: When building for
riscv64-linux delete 'revert-riscv-pause-instruction phase.
Change-Id: I59120e8dae995fca52b192b07e265db20d9281e7
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/rust.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 42be029c285..164404111e6 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm | |||
| @@ -926,7 +926,15 @@ safety and thread safety guarantees.") | |||
| 926 | ;; Adjust vendored dependency to explicitly use rustix with libc backend. | 926 | ;; Adjust vendored dependency to explicitly use rustix with libc backend. |
| 927 | (substitute* "vendor/tempfile/Cargo.toml" | 927 | (substitute* "vendor/tempfile/Cargo.toml" |
| 928 | (("features = \\[\"fs\"" all) | 928 | (("features = \\[\"fs\"" all) |
| 929 | (string-append all ", \"use-libc\"")))))))))) | 929 | (string-append all ", \"use-libc\""))))))) |
| 930 | (arguments | ||
| 931 | (if (target-riscv64?) | ||
| 932 | (substitute-keyword-arguments (package-arguments base-rust) | ||
| 933 | ((#:phases phases) | ||
| 934 | `(modify-phases ,phases | ||
| 935 | ;; This phase is no longer needed. | ||
| 936 | (delete 'revert-riscv-pause-instruction)))) | ||
| 937 | (package-arguments base-rust)))))) | ||
| 930 | 938 | ||
| 931 | (define rust-1.75 | 939 | (define rust-1.75 |
| 932 | (let ((base-rust (rust-bootstrapped-package rust-1.74 "1.75.0" | 940 | (let ((base-rust (rust-bootstrapped-package rust-1.74 "1.75.0" |
