diff options
author | simonLeary42 <71396965+simonLeary42@users.noreply.github.com> | 2024-07-15 11:03:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 17:03:23 +0200 |
commit | 22980b9e6501d6ab5f10b0713e0ec496bd1f2bfb (patch) | |
tree | 5ae7b960dc5513e49f70289c611f3b53ff56e560 /var | |
parent | 483426f771f18d74683ddaa597007ac0da8bf1d1 (diff) | |
download | spack-22980b9e6501d6ab5f10b0713e0ec496bd1f2bfb.tar.gz spack-22980b9e6501d6ab5f10b0713e0ec496bd1f2bfb.tar.bz2 spack-22980b9e6501d6ab5f10b0713e0ec496bd1f2bfb.tar.xz spack-22980b9e6501d6ab5f10b0713e0ec496bd1f2bfb.zip |
rust: update `cmake` dependency ranges (#45145)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/rust/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/rust/package.py b/var/spack/repos/builtin/packages/rust/package.py index d7ed962465..fdcbdc5c85 100644 --- a/var/spack/repos/builtin/packages/rust/package.py +++ b/var/spack/repos/builtin/packages/rust/package.py @@ -54,7 +54,6 @@ class Rust(Package): variant("src", default=True, description="Include standard library source files.") # Core dependencies - depends_on("cmake@3.13.4:", type="build") depends_on("curl+nghttp2") depends_on("libgit2") depends_on("libssh2") @@ -64,6 +63,12 @@ class Rust(Package): depends_on("python", type="build") depends_on("zlib-api") + # cmake dependency comes from LLVM. Rust has their own fork of LLVM, with tags corresponding + # to each Rust release, so it's easy to loop through tags and grep for "cmake_minimum_required" + depends_on("cmake@3.4.3:", type="build", when="@:1.51") + depends_on("cmake@3.13.4:", type="build", when="@1.52:1.72") + depends_on("cmake@3.20.0:", type="build", when="@1.73:") + # Compiling Rust requires a previous version of Rust. # The easiest way to bootstrap a Rust environment is to # download the binary distribution of the compiler and build with that. |