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