rust: update cmake dependency ranges (#45145)

This commit is contained in:
simonLeary42 2024-07-15 11:03:23 -04:00 committed by GitHub
parent 483426f771
commit 22980b9e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.