Ticket #5943: clang.jam

File clang.jam, 952 bytes (added by Minmin Gong <gongminmin@…>, 8 years ago)
Line 
1# Distributed under the Boost Software License, Version 1.0.
2# (See accompanying file LICENSE_1_0.txt
3# or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5# This is a generic 'clang' toolset. Depending on the current system, it
6# forwards either to 'clang-unix', 'clang-win' or 'clang-darwin' modules.
7
8import feature ;
9import os ;
10import toolset ;
11
12feature.extend toolset : clang ;
13feature.subfeature toolset clang : platform : : propagated link-incompatible ;
14
15rule init ( * : * )
16{
17 if [ os.name ] = MACOSX
18 {
19 toolset.using clang-darwin :
20 $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
21 }
22 else if [ os.name ] = LINUX
23 {
24 toolset.using clang-linux :
25 $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
26 }
27 else
28 {
29 toolset.using clang-win :
30 $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
31 }
32}