# IT4Innovations 2019

name = 'Clang'
version = '7.0.1'

homepage = 'http://clang.llvm.org/'
description = """C, C++, Objective-C compiler, based on LLVM.  Does not
 include C++ standard library -- use libstdc++ from GCC."""

# Clang also depends on libstdc++ during runtime, but this dependency is
# already specified as the toolchain.
toolchain = {'name': 'gompi', 'version': '2019.02'}
# Do not set optarch to True: it will cause the build to fail
toolchainopts = {'optarch': False}

source_urls = ["http://llvm.org/releases/%(version)s"]
sources = [
    'llvm-%(version)s.src.tar.xz',
    'cfe-%(version)s.src.tar.xz',
    'compiler-rt-%(version)s.src.tar.xz',
    'polly-%(version)s.src.tar.xz',
    'openmp-%(version)s.src.tar.xz',
]

dependencies = [
    ('GMP', '6.1.2'),
]

builddependencies = [
    ('CMake', '3.13.1', '', True),
    ('Python', '2.7.15'),
    ('libxml2', '2.9.4', '', True),
]

assertions = True
usepolly = True
skip_all_tests = True

moduleclass = 'compiler'
