~ubuntu-branches/ubuntu/trusty/xiphos/trusty

« back to all changes in this revision

Viewing changes to wafadmin/Tools/icc.py

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs, Dmitrijs Ledkovs
  • Date: 2012-03-11 18:43:32 UTC
  • mfrom: (17.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120311184332-splq3ecpx7tyi87d
Tags: 3.1.5+dfsg-1
[ Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> ]  
* New upstream release.
* Build using webkit backend
* Contains unpacked source for waf binary (Closes: #654511)
* Update debian/copyright to latest specification

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# encoding: utf-8
 
3
 
 
4
import os,sys
 
5
import Configure,Options,Utils
 
6
import ccroot,ar,gcc
 
7
from Configure import conftest
 
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
        ccroot.get_cc_version(conf,cc,icc=True)
 
20
        v['CC']=cc
 
21
        v['CC_NAME']='icc'
 
22
detect='''
 
23
find_icc
 
24
find_ar
 
25
gcc_common_flags
 
26
gcc_modifier_platform
 
27
cc_load_tools
 
28
cc_add_flags
 
29
link_add_flags
 
30
'''
 
31
 
 
32
conftest(find_icc)