diff options
author | Jean-Paul Pelteret <jppelteret@gmail.com> | 2017-04-04 13:56:44 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-04 06:56:44 -0500 |
commit | 7de6a28b1573941723ebca205f6e38f5dae312f8 (patch) | |
tree | 99e6072869f9d7cc3510adc2ca8a935b81097792 | |
parent | 0e32369a264f1fdf5656ec24b188c77c699f51a7 (diff) | |
download | spack-7de6a28b1573941723ebca205f6e38f5dae312f8.tar.gz spack-7de6a28b1573941723ebca205f6e38f5dae312f8.tar.bz2 spack-7de6a28b1573941723ebca205f6e38f5dae312f8.tar.xz spack-7de6a28b1573941723ebca205f6e38f5dae312f8.zip |
Update SymEngine package to enable build against LLVM (#3682)
-rw-r--r-- | var/spack/repos/builtin/packages/symengine/package.py | 9 |
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' % ( |