~ubuntu-branches/ubuntu/raring/xmms2/raring

« back to all changes in this revision

Viewing changes to waflib/Tools/icpc.py

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-11-25 19:23:15 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: package-import@ubuntu.com-20121125192315-m9z6nu9wwlzrrz9z
ImportĀ upstreamĀ versionĀ 0.8+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# encoding: utf-8
 
3
# WARNING! Do not edit! http://waf.googlecode.com/svn/docs/wafbook/single.html#_obtaining_the_waf_file
 
4
 
 
5
import os,sys
 
6
from waflib.Tools import ccroot,ar,gxx
 
7
from waflib.Configure import conf
 
8
def find_icpc(conf):
 
9
        if sys.platform=='cygwin':
 
10
                conf.fatal('The Intel compiler does not work on Cygwin')
 
11
        v=conf.env
 
12
        cxx=None
 
13
        if v['CXX']:cxx=v['CXX']
 
14
        elif'CXX'in conf.environ:cxx=conf.environ['CXX']
 
15
        if not cxx:cxx=conf.find_program('icpc',var='CXX')
 
16
        if not cxx:conf.fatal('Intel C++ Compiler (icpc) was not found')
 
17
        cxx=conf.cmd_to_list(cxx)
 
18
        conf.get_cc_version(cxx,icc=True)
 
19
        v['CXX']=cxx
 
20
        v['CXX_NAME']='icc'
 
21
def configure(conf):
 
22
        conf.find_icpc()
 
23
        conf.find_ar()
 
24
        conf.gxx_common_flags()
 
25
        conf.gxx_modifier_platform()
 
26
        conf.cxx_load_tools()
 
27
        conf.cxx_add_flags()
 
28
        conf.link_add_flags()
 
29
 
 
30
conf(find_icpc)
 
 
b'\\ No newline at end of file'