1#!/usr/bin/env python
2# encoding: utf-8
3# Thomas Nagy 2009-2018 (ita)
4
5"""
6Detects the Intel C++ compiler
7"""
8
9import sys
10from waflib.Tools import ccroot, ar, gxx
11from waflib.Configure import conf
12
13@conf
14def find_icpc(conf):
15	"""
16	Finds the program icpc, and execute it to ensure it really is icpc
17	"""
18	cxx = conf.find_program('icpc', var='CXX')
19	conf.get_cc_version(cxx, icc=True)
20	conf.env.CXX_NAME = 'icc'
21
22def configure(conf):
23	conf.find_icpc()
24	conf.find_ar()
25	conf.gxx_common_flags()
26	conf.gxx_modifier_platform()
27	conf.cxx_load_tools()
28	conf.cxx_add_flags()
29	conf.link_add_flags()
30
31