thirdparty:waf: New files for waf 1.9.10
[vlendec/samba-autobuild/.git] / third_party / waf / waflib / Tools / icpc.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 # Thomas Nagy 2009-2016 (ita)
8
9 """
10 Detects the Intel C++ compiler
11 """
12
13 import sys
14 from waflib.Tools import ccroot, ar, gxx
15 from waflib.Configure import conf
16
17 @conf
18 def find_icpc(conf):
19         """
20         Finds the program icpc, and execute it to ensure it really is icpc
21         """
22         cxx = conf.find_program('icpc', var='CXX')
23         conf.get_cc_version(cxx, icc=True)
24         conf.env.CXX_NAME = 'icc'
25
26 def configure(conf):
27         conf.find_icpc()
28         conf.find_ar()
29         conf.gxx_common_flags()
30         conf.gxx_modifier_platform()
31         conf.cxx_load_tools()
32         conf.cxx_add_flags()
33         conf.link_add_flags()