summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
authorBrennan Vincent <brennan@umanwizard.com>2024-03-24 10:27:38 -0400
committerEfraim Flashner <efraim@flashner.co.il>2024-06-26 12:35:26 +0300
commita47b695926e12850fc8055ede6c342d02ecd18ec (patch)
treeaaf9eb49c6ca2fdc583c161b595cb8344b902c59 /gnu/packages/rust.scm
parent0d9a97d7a980240911377e74dac4b5b2165990d8 (diff)
gnu: Add rust-1.77.0.
* gnu/packages/rust.scm (rust-1.77): New variable. Change-Id: Ia4611b0ea153bce1de97e711af6d3f7396a6bf85 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index dc4b0aa0944..9d3dfa65ad2 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -957,6 +957,30 @@ safety and thread safety guarantees.")
957 (inputs (modify-inputs (package-inputs base-rust) 957 (inputs (modify-inputs (package-inputs base-rust)
958 (replace "llvm" llvm-17)))))) 958 (replace "llvm" llvm-17))))))
959 959
960(define-public rust-1.77
961 (let ((base-rust (rust-bootstrapped-package rust-1.76 "1.77.0"
962 "11rda8d8qj24a5mkjzj1x6x9pkvaq0zlhkgdp5b39zj5m0gwsv0d")))
963 (package
964 (inherit base-rust)
965 (arguments
966 (substitute-keyword-arguments (package-arguments base-rust)
967 ((#:phases phases)
968 `(modify-phases ,phases
969 (add-after 'configure 'no-optimized-compiler-builtins
970 (lambda _
971 ;; Pre-1.77, the behavior was equivalent to this flag being
972 ;; "false" if the llvm-project submodule wasn't checked out.
973 ;;
974 ;; Now there's an explicit check, so the build fails if we don't
975 ;; manually disable this (given that we don't have the submodule checked out).
976 ;; Thus making the build behave the same as it did in 1.76 and earlier.
977 ;;
978 ;; TODO - make the build system depend on system llvm for this, so we
979 ;; can get the performance benefits of setting this to true?
980 (substitute* "config.toml"
981 (("\\[build\\]")
982 "[build]\noptimized-compiler-builtins = false")))))))))))
983
960(define (make-ignore-test-list strs) 984(define (make-ignore-test-list strs)
961 "Function to make creating a list to ignore tests a bit easier." 985 "Function to make creating a list to ignore tests a bit easier."
962 (map (lambda (str) 986 (map (lambda (str)