|
| 1 | +name = 'LLVM' |
| 2 | +version = '14.0.6' |
| 3 | +versionsuffix = '-llvmlite' |
| 4 | + |
| 5 | +homepage = "https://llvm.org/" |
| 6 | +description = """The LLVM Core libraries provide a modern source- and target-independent |
| 7 | + optimizer, along with code generation support for many popular CPUs |
| 8 | + (as well as some less common ones!) These libraries are built around a well |
| 9 | + specified code representation known as the LLVM intermediate representation |
| 10 | + ("LLVM IR"). The LLVM Core libraries are well documented, and it is |
| 11 | + particularly easy to invent your own language (or port an existing compiler) |
| 12 | + to use LLVM as an optimizer and code generator. |
| 13 | +
|
| 14 | + This version include patches for llvmlite / numba.""" |
| 15 | + |
| 16 | +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} |
| 17 | +toolchainopts = {'cstd': 'gnu++11', 'pic': True} |
| 18 | + |
| 19 | +source_urls = ['https://github.com/llvm/llvm-project/releases/download/llvmorg-%(version)s/'] |
| 20 | +sources = ['llvm-%(version)s.src.tar.xz'] |
| 21 | +patches = [ |
| 22 | + 'LLVM-14.0.6-clear-gotoffsetmap.patch', |
| 23 | + 'LLVM-14.0.6-svml.patch', |
| 24 | +] |
| 25 | +checksums = [ |
| 26 | + {'llvm-14.0.6.src.tar.xz': '050922ecaaca5781fdf6631ea92bc715183f202f9d2f15147226f023414f619a'}, |
| 27 | + {'LLVM-14.0.6-clear-gotoffsetmap.patch': '690c96dcbd0a81e11d87f02e740c4ef34a0c578be741aaa6559cc00a5349fabf'}, |
| 28 | + {'LLVM-14.0.6-svml.patch': '59df18ea4af3479de42ecbc1c524d4106f4a55f23335a64c0f0d5433daaba1b7'}, |
| 29 | +] |
| 30 | + |
| 31 | +# Patches from https://github.com/numba/llvmlite/raw/v0.41.1/conda-recipes/ but |
| 32 | +# renamed to follow EasyBuild conventions. |
| 33 | +builddependencies = [ |
| 34 | + ('binutils', '2.42'), |
| 35 | + ('CMake', '3.29.3'), |
| 36 | + ('Python', '3.12.3'), |
| 37 | +] |
| 38 | + |
| 39 | +dependencies = [ |
| 40 | + ('ncurses', '6.5'), |
| 41 | + ('zlib', '1.3.1'), |
| 42 | +] |
| 43 | + |
| 44 | +build_shared_libs = True |
| 45 | + |
| 46 | +sanity_check_paths = { |
| 47 | + 'files': ['bin/llvm-ar', 'bin/FileCheck'], |
| 48 | + 'dirs': ['include/llvm', 'include/llvm-c'], |
| 49 | +} |
| 50 | + |
| 51 | +sanity_check_commands = ["llvm-ar --help"] |
| 52 | + |
| 53 | +moduleclass = 'compiler' |
0 commit comments