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

« back to all changes in this revision

Viewing changes to wafadmin/Tools/icpc.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,gxx
 
7
from Configure import conftest
 
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
        ccroot.get_cc_version(conf,cxx,icc=True)
 
19
        v['CXX']=cxx
 
20
        v['CXX_NAME']='icc'
 
21
detect='''
 
22
find_icpc
 
23
find_ar
 
24
gxx_common_flags
 
25
gxx_modifier_platform
 
26
cxx_load_tools
 
27
cxx_add_flags
 
28
'''
 
29
 
 
30
conftest(find_icpc)