-
-
Notifications
You must be signed in to change notification settings - Fork 230
/
Copy pathcomo.jam
75 lines (56 loc) · 2.01 KB
/
como.jam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright Vladimir Prus 2004.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt
# or copy at https://www.bfgroup.xyz/b2/LICENSE.txt)
#| tag::doc[]
[[b2.reference.tools.compiler.como]]
= Comeau C/C++ Compiler
The `como-linux` and the `como-win` modules supports the
http://www.comeaucomputing.com/[Comeau C/C++ Compiler] on Linux and
Windows respectively.
The module is initialized using the following syntax:
----
using como : [version] : [c++-compile-command] : [compiler options] ;
----
This statement may be repeated several times, if you want to configure
several versions of the compiler.
If the command is not specified, B2 will search for a binary
named `como` in PATH.
The following options can be provided, using
_`<option-name>option-value syntax`_:
`cflags`::
Specifies additional compiler flags that will be used when compiling C
sources.
`cxxflags`::
Specifies additional compiler flags that will be used when compiling C++
sources.
`compileflags`::
Specifies additional compiler flags that will be used when compiling both C
and C++ sources.
`linkflags`::
Specifies additional command line options that will be passed to the linker.
Before using the Windows version of the compiler, you need to setup
necessary environment variables per compiler's documentation. In
particular, the COMO_XXX_INCLUDE variable should be set, where XXX
corresponds to the used backend C compiler.
|# # end::doc[]
# This is a generic 'como' toolset. Depending on the current system, it
# forwards either to 'como-linux' or 'como-win' modules.
import feature ;
import os ;
import toolset ;
feature.extend toolset : como ;
feature.subfeature toolset como : platform : : propagated link-incompatible ;
rule init ( * : * )
{
if [ os.name ] = LINUX
{
toolset.using como-linux :
$(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
}
else
{
toolset.using como-win :
$(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
}
}