LLVM-4.0.0-intel-2017.02.eb 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. easyblock = 'CMakeMake'
  2. name = 'LLVM'
  3. version = '4.0.0'
  4. homepage = "http://llvm.org/"
  5. description = """The LLVM Core libraries provide a modern source- and target-independent
  6. optimizer, along with code generation support for many popular CPUs
  7. (as well as some less common ones!) These libraries are built around a well
  8. specified code representation known as the LLVM intermediate representation
  9. ("LLVM IR"). The LLVM Core libraries are well documented, and it is
  10. particularly easy to invent your own language (or port an existing compiler)
  11. to use LLVM as an optimizer and code generator."""
  12. toolchain = {'name': 'intel', 'version': '2017.02'}
  13. toolchainopts = {'cstd': 'gnu++11'}
  14. source_urls = ["http://llvm.org/releases/%(version)s"]
  15. sources = ["llvm-%(version)s.src.tar.xz"]
  16. builddependencies = [
  17. ('CMake', '3.7.2'),
  18. ('Python', '2.7.13'),
  19. ]
  20. dependencies = [
  21. ('ncurses', '6.0'),
  22. ('zlib', '1.2.11'),
  23. ]
  24. configopts = '-DBUILD_SHARED_LIBS=ON -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -shared-intel" '
  25. # required to install extra tools in bin/
  26. configopts += "-DLLVM_INSTALL_UTILS=ON -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_ZLIB=ON"
  27. sanity_check_paths = {
  28. 'files': ['bin/llvm-ar', 'bin/FileCheck'],
  29. 'dirs': ['include/llvm', 'include/llvm-c'],
  30. }
  31. separate_build_dir = True
  32. moduleclass = 'compiler'