blob: 14a532512f1bb2a5bf9c1245666dc40cc952e6ca [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,gxx
7from waflib.Configure import conf
8@conf
9def find_icpc(conf):
10 if sys.platform=='cygwin':
11 conf.fatal('The Intel compiler does not work on Cygwin')
12 v=conf.env
13 cxx=None
14 if v['CXX']:cxx=v['CXX']
15 elif'CXX'in conf.environ:cxx=conf.environ['CXX']
16 if not cxx:cxx=conf.find_program('icpc',var='CXX')
17 if not cxx:conf.fatal('Intel C++ Compiler (icpc) was not found')
18 cxx=conf.cmd_to_list(cxx)
19 conf.get_cc_version(cxx,icc=True)
20 v['CXX']=cxx
21 v['CXX_NAME']='icc'
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()