summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index 300b5dbfb6..97ec56be5f 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -199,6 +199,8 @@ class Llvm(CMakePackage, CudaPackage):
# Introduced in version 11 as a part of LLVM and not a separate package.
conflicts("+flang", when="@:10")
+ conflicts('~mlir', when='+flang', msg='Flang requires MLIR')
+
# Older LLVM do not build with newer compilers, and vice versa
conflicts("%gcc@11:", when="@:7")
conflicts("%gcc@8:", when="@:5")