# IT4Innovations 2019

name = 'icc'
version = '2018.5.274'

homepage = 'http://software.intel.com/en-us/intel-compilers/'
description = "Intel C and C++ compilers"

toolchain = SYSTEM

sources = ['parallel_studio_xe_%(version_major)s_update4_composer_edition_for_cpp.tgz']
checksums = ['bc5086f43d72f7e6a3d34a6602a81f8e']

local_gccver = '8.3.0'
local_binutilsver = '2.32'
versionsuffix = '-GCC-%s-%s' % (local_gccver, local_binutilsver)

dependencies = [
    ('GCCcore', local_gccver),
    ('binutils', local_binutilsver, '', ('GCCcore', local_gccver)),
]

# list of regex for components to install
# full list of components can be obtained from pset/mediaconfig.xml in unpacked sources
# cfr.
# https://software.intel.com/en-us/articles/intel-composer-xe-2015-silent-installation-guide
components = ['intel-comp', 'intel-ccomp', 'intel-icc', 'intel-openmp', 'intel-ipsc?_', 'intel-gdb(?!.*mic)']

dontcreateinstalldir = 'True'

license_file = '/apps/licenses/intel/license.lic'

modextravars = {
    'CC': 'icc',
    'CXX': 'icpc',
    'OPTFLAGS': '-O3 -xHost -ip',
    'DEBUGFLAGS': '-O0 -g'
}

moduleclass = 'compiler'
