blob: 7c75e18dd344193d47ac663d76750f7aa4fc5342 [file] [log] [blame]
akmhoquefa8ee9b2014-03-14 09:06:24 -05001#! /usr/bin/env python
2# encoding: utf-8
3# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
4
5import os,sys
6from waflib.Tools import ccroot,ar,gcc
7from waflib.Configure import conf
8@conf
9def find_icc(conf):
10 if sys.platform=='cygwin':
11 conf.fatal('The Intel compiler does not work on Cygwin')
12 v=conf.env
13 cc=None
14 if v['CC']:cc=v['CC']
15 elif'CC'in conf.environ:cc=conf.environ['CC']
16 if not cc:cc=conf.find_program('icc',var='CC')
17 if not cc:cc=conf.find_program('ICL',var='CC')
18 if not cc:conf.fatal('Intel C Compiler (icc) was not found')
19 cc=conf.cmd_to_list(cc)
20 conf.get_cc_version(cc,icc=True)
21 v['CC']=cc
22 v['CC_NAME']='icc'
23def configure(conf):
24 conf.find_icc()
25 conf.find_ar()
26 conf.gcc_common_flags()
27 conf.gcc_modifier_platform()
28 conf.cc_load_tools()
29 conf.cc_add_flags()
30 conf.link_add_flags()