Update SymEngine package to enable build against LLVM (#3682)
This commit is contained in:
		
				
					committed by
					
						
						Adam J. Stewart
					
				
			
			
				
	
			
			
			
						parent
						
							0e32369a26
						
					
				
				
					commit
					7de6a28b15
				
			@@ -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 @@ def cmake_args(self):
 | 
			
		||||
            '-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' % (
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user