~elementary-apps/noise/trunk

« back to all changes in this revision

Viewing changes to .waf-1.6.2-ad4cc42bd7d347f7e283789e711b993f/waflib/Tools/icc.py

  • Committer: Scott Ringwelski
  • Date: 2011-02-10 21:30:53 UTC
  • Revision ID: sgringwe@mtu.edu-20110210213053-d3c7mnexeref3cwj
sexy icons, sexy waf

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# encoding: utf-8
 
3
# WARNING! All changes made to this file will be lost!
 
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'