summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2024-05-02 17:36:06 +0200
committerGitHub <noreply@github.com>2024-05-02 08:36:06 -0700
commit32564da9d0b66520f7ba45d19859024e78cac63f (patch)
tree2b32d6c1c00039f257cd6e1b47e793edd49d032c
parent8f2faf65dc1b1003ba03aa9f4e3a7e12eaae21c1 (diff)
downloadspack-32564da9d0b66520f7ba45d19859024e78cac63f.tar.gz
spack-32564da9d0b66520f7ba45d19859024e78cac63f.tar.bz2
spack-32564da9d0b66520f7ba45d19859024e78cac63f.tar.xz
spack-32564da9d0b66520f7ba45d19859024e78cac63f.zip
rust: add conflict for older GCC (#43958)
-rw-r--r--var/spack/repos/builtin/packages/rust/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rust/package.py b/var/spack/repos/builtin/packages/rust/package.py
index 0068d3c3e7..5c42de748e 100644
--- a/var/spack/repos/builtin/packages/rust/package.py
+++ b/var/spack/repos/builtin/packages/rust/package.py
@@ -81,6 +81,9 @@ class Rust(Package):
depends_on("rust-bootstrap@1.73:1.74", type="build", when="@1.74")
depends_on("rust-bootstrap@1.74:1.75", type="build", when="@1.75")
+ # src/llvm-project/llvm/cmake/modules/CheckCompilerVersion.cmake
+ conflicts("%gcc@:7.3", when="@1.73:", msg="Host GCC version must be at least 7.4")
+
extendable = True
executables = ["^rustc$", "^cargo$"]