diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 6b2205a6bb..a6fcd6a411 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -3776,6 +3776,12 @@ class Solver: def __init__(self): self.driver = PyclingoDriver() self.selector = ReusableSpecsSelector(configuration=spack.config.CONFIG) + if spack.platforms.host().name == "cray": + msg = ( + "The Cray platform, i.e. 'platform=cray', will be removed in Spack v0.23. " + "All Cray machines will be then detected as 'platform=linux'." + ) + warnings.warn(msg) @staticmethod def _check_input_and_extract_concrete_specs(specs):