~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to waflib/Tools/icc.py

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Felipe Sateler, Jaromír Mikeš
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-9by89mlwhy6cpjxo
Tags: 3.4~dfsg-2
* Team upload.

[ Felipe Sateler ]
* Re-upload to unstable

[ Jaromír Mikeš ]
* Update copyright file.

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/git/docs/wafbook/single.html#_obtaining_the_waf_file
 
4
 
 
5
import os,sys
 
6
from waflib.Tools import ccroot,ar,gcc
 
7
from waflib.Configure import conf
 
8
def find_icc(conf):
 
9
        if sys.platform=='cygwin':
 
10
                conf.fatal('The Intel compiler does not work on Cygwin')
 
11
        v=conf.env
 
12
        cc=None
 
13
        if v['CC']:cc=v['CC']
 
14
        elif'CC'in conf.environ:cc=conf.environ['CC']
 
15
        if not cc:cc=conf.find_program('icc',var='CC')
 
16
        if not cc:cc=conf.find_program('ICL',var='CC')
 
17
        if not cc:conf.fatal('Intel C Compiler (icc) was not found')
 
18
        cc=conf.cmd_to_list(cc)
 
19
        conf.get_cc_version(cc,icc=True)
 
20
        v['CC']=cc
 
21
        v['CC_NAME']='icc'
 
22
def configure(conf):
 
23
        conf.find_icc()
 
24
        conf.find_ar()
 
25
        conf.gcc_common_flags()
 
26
        conf.gcc_modifier_platform()
 
27
        conf.cc_load_tools()
 
28
        conf.cc_add_flags()
 
29
        conf.link_add_flags()
 
30
 
 
31
conf(find_icc)
 
 
b'\\ No newline at end of file'