7 import Configure
, Options
, Utils
9 from Configure
import conftest
13 if sys
.platform
== 'cygwin':
14 conf
.fatal('The Intel compiler does not work on Cygwin')
18 if v
['CC']: cc
= v
['CC']
19 elif 'CC' in conf
.environ
: cc
= conf
.environ
['CC']
20 if not cc
: cc
= conf
.find_program('icc', var
='CC')
21 if not cc
: cc
= conf
.find_program('ICL', var
='CC')
22 if not cc
: conf
.fatal('Intel C Compiler (icc) was not found')
23 cc
= conf
.cmd_to_list(cc
)
25 ccroot
.get_cc_version(conf
, cc
, icc
=True)