summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/impalajit-llvm/package.py
blob: da3591eff735909bc2fe49f396092414c77f92d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *


class ImpalajitLlvm(CMakePackage):
    """Impala is a calculator-like language. This is a fork of
    the original ImpalaJIT project and was enhanced with LLVM JIT.
    Impala acts as a backend for `easi` project.
    """

    homepage = "https://github.com/ravil-mobile/ImpalaJIT"
    git = "https://github.com/ravil-mobile/ImpalaJIT"

    maintainers = ['ravil-mobile']

    version('develop', branch='master')
    version('1.0.0', tag='v1.0.0')

    variant('shared', default=True, description='build as a shared library')

    depends_on('llvm@10.0.0:11.1.0')
    depends_on('z3')

    def cmake_args(self):
        args = []
        args.append(self.define_from_variant('SHARED_LIB', 'shared'))
        return args