summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/symengine/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/symengine/package.py b/var/spack/repos/builtin/packages/symengine/package.py
index e3c00f849a..136575e48c 100644
--- a/var/spack/repos/builtin/packages/symengine/package.py
+++ b/var/spack/repos/builtin/packages/symengine/package.py
@@ -40,16 +40,18 @@ class Symengine(CMakePackage):
description='Compile with Boost multi-precision integer library')
variant('flint', default=False,
description='Compile with Flint integer library')
+ variant('llvm', default=False,
+ description='Compile with LLVM JIT compiler support')
variant('mpc', default=True,
description='Compile with MPC library')
variant('mpfr', default=True,
description='Compile with MPFR library')
+ variant('openmp', default=False,
+ description='Enable OpenMP support')
variant('piranha', default=False,
description='Compile with Piranha integer library')
variant('thread_safe', default=True,
description='Enable thread safety option')
- variant('openmp', default=False,
- description='Enable OpenMP support')
variant('shared', default=True,
description='Enables the build of shared libraries')
@@ -61,6 +63,7 @@ class Symengine(CMakePackage):
# NOTE: [mpc,mpfr,flint,piranha] could also be built against mpir
depends_on('boost', when='+boostmp')
depends_on('gmp', when='~boostmp')
+ depends_on('llvm', when='+llvm')
depends_on('mpc', when='+mpc~boostmp')
depends_on('mpfr', when='+mpfr~boostmp')
depends_on('flint', when='+flint~boostmp')
@@ -84,6 +87,8 @@ class Symengine(CMakePackage):
'-DBUILD_TESTS:BOOL=%s' % (
'ON' if self.run_tests else 'OFF'),
'-DBUILD_BENCHMARKS:BOOL=ON',
+ '-DWITH_LLVM:BOOL=%s' % (
+ 'ON' if '+llvm' in spec else 'OFF'),
'-DWITH_OPENMP:BOOL=%s' % (
'ON' if '+openmp' in spec else 'OFF'),
'-DBUILD_SHARED_LIBS:BOOL=%s' % (