| 1 |
#!/usr/bin/env python |
| 2 |
# encoding: utf-8 |
| 3 |
# Stian Selnes 2008 |
| 4 |
# Thomas Nagy 2009-2018 (ita) |
| 5 |
|
| 6 |
""" |
| 7 |
Detects the Intel C compiler |
| 8 |
""" |
| 9 |
|
| 10 |
import sys |
| 11 |
from waflib.Tools import ccroot, ar, gcc |
| 12 |
from waflib.Configure import conf |
| 13 |
|
| 14 |
@conf |
| 15 |
def find_icc(conf): |
| 16 |
""" |
| 17 |
Finds the program icc and execute it to ensure it really is icc |
| 18 |
""" |
| 19 |
cc = conf.find_program(['icc', 'ICL'], var='CC') |
| 20 |
conf.get_cc_version(cc, icc=True) |
| 21 |
conf.env.CC_NAME = 'icc' |
| 22 |
|
| 23 |
def configure(conf): |
| 24 |
conf.find_icc() |
| 25 |
conf.find_ar() |
| 26 |
conf.gcc_common_flags() |
| 27 |
conf.gcc_modifier_platform() |
| 28 |
conf.cc_load_tools() |
| 29 |
conf.cc_add_flags() |
| 30 |
conf.link_add_flags() |