1 # Copyright Vladimir Prus 2004.
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt
4 # or copy at http://www.boost.org/LICENSE_1_0.txt)
8 [[bbv2.reference.tools.compiler.intel]]
11 The `intel-*` modules support the Intel C++ command-line compiler.
13 The module is initialized using the following syntax:
16 using intel : [version] : [c++-compile-command] : [compiler options] ;
19 This statement may be repeated several times, if you want to configure
20 several versions of the compiler.
22 If compiler command is not specified, then Boost.Build will look in PATH
23 for an executable `icpc` (on Linux), or `icc.exe` (on Windows).
25 The following options can be provided, using
26 _`<option-name>option-value syntax`_:
29 Specifies additional compiler flags that will be used when compiling C
33 Specifies additional compiler flags that will be used when compiling C++
37 Specifies additional compiler flags that will be used when compiling both C
41 Specifies additional command line options that will be passed to the linker.
43 The Linux version supports the following additional options:
46 Specifies root directory of the compiler installation. This option is
47 necessary only if it is not possible to detect this information from the
48 compiler command -- for example if the specified compiler command is a user
53 # This is a generic 'intel' toolset. Depending on the current
54 # system, it forwards either to 'intel-linux' or 'intel-win'
61 feature.extend toolset : intel ;
62 feature.subfeature toolset intel : platform : : propagated link-incompatible ;
66 if [ os.name ] = LINUX
68 toolset.using intel-linux :
69 $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
71 else if [ os.name ] = MACOSX
73 toolset.using intel-darwin :
74 $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
78 toolset.using intel-win :
79 $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;