easyblock = "CMakeMake"
name = "Clang"
version = "3.7.0"

homepage = "http://clang.llvm.org/"
description = """C, C++, Objective-C local_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': 'GNU', 'version': '5.1.0-2.25'}
# 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",
    "local_compiler-rt-%(version)s.src.tar.xz",
    "polly-%(version)s.src.tar.xz",
]

dependencies = [
    ('GMP', '6.0.0a'),
    ('ISL', '0.14'),
]

builddependencies = [
    ('CMake', '3.3.1'),
    ('Python', '2.7.9'),
    ('libxml2', '2.9.2'),
]

separate_build_dir = True

assertions = True

usepolly = True

build_targets = ['X86']

moduleclass = 'compiler'
