summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNichols A. Romero <naromero77@users.noreply.github.com>2020-04-04 11:12:21 -0500
committerGitHub <noreply@github.com>2020-04-04 11:12:21 -0500
commit4ee9fd46bc41759e1c8e70b70d538a458edf8413 (patch)
treef58ea96c1ff895849ee2b52fef99095937fcd4ad /var
parent4bb1392d7da081d071701e0f77674fd068e3216f (diff)
downloadspack-4ee9fd46bc41759e1c8e70b70d538a458edf8413.tar.gz
spack-4ee9fd46bc41759e1c8e70b70d538a458edf8413.tar.bz2
spack-4ee9fd46bc41759e1c8e70b70d538a458edf8413.tar.xz
spack-4ee9fd46bc41759e1c8e70b70d538a458edf8413.zip
LLVM support for mlir (#15859)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index a5aedb625d..810203a9f0 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -77,6 +77,7 @@ class Llvm(CMakePackage):
)
variant("lldb", default=True, description="Build the LLVM debugger")
variant("lld", default=True, description="Build the LLVM linker")
+ variant("mlir", default=False, description="Build with MLIR support")
variant(
"internal_unwind",
default=True,
@@ -182,6 +183,9 @@ class Llvm(CMakePackage):
# OMP TSAN exists in > 5.x
conflicts("+omp_tsan", when="@:5.99")
+ # MLIR exists in > 10.x
+ conflicts("+mlir", when="@:9")
+
# Github issue #4986
patch("llvm_gcc7.patch", when="@4.0.0:4.0.1+lldb %gcc@7.0:")
# Backport from llvm master + additional fix
@@ -299,6 +303,8 @@ class Llvm(CMakePackage):
projects.append("libcxxabi")
if spec.satisfies("@3.9.0:"):
cmake_args.append("-DCLANG_DEFAULT_CXX_STDLIB=libc++")
+ if "+mlir" in spec:
+ projects.append("mlir")
if "+internal_unwind" in spec:
projects.append("libunwind")
if "+polly" in spec: