| 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 | 
 | 
|---|
| 8 | import feature ;
 | 
|---|
| 9 | import os ;
 | 
|---|
| 10 | import toolset ;
 | 
|---|
| 11 | 
 | 
|---|
| 12 | feature.extend toolset : clang ;
 | 
|---|
| 13 | feature.subfeature toolset clang : platform : : propagated link-incompatible ;
 | 
|---|
| 14 | 
 | 
|---|
| 15 | rule 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 | }
 | 
|---|