source: waflib/Tools/icpc.py @ 5525507

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 5525507 was 0fa325b, checked in by Paul Brossier <piem@piem.org>, 11 years ago

waf: unpack

  • Property mode set to 100644
File size: 837 bytes
Line 
1#! /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()
Note: See TracBrowser for help on using the repository browser.