diff --git a/libs/thread/build/Jamfile.v2 b/libs/thread/build/Jamfile.v2
index eeed31d..7bec70e 100644
|
a
|
b
|
import feature ;
|
| 37 | 37 | import indirect ; |
| 38 | 38 | import path ; |
| 39 | 39 | |
| | 40 | feature.feature threadapi : pthread win32 : propagated ; |
| | 41 | |
| | 42 | rule set_build_threadapi ( properties * ) |
| | 43 | { |
| | 44 | local api ; |
| | 45 | |
| | 46 | if <target-os>windows in $(properties) { api = win32 ; } |
| | 47 | if <target-os>linux in $(properties) { api = pthread ; } |
| | 48 | |
| | 49 | return <threadapi>$(api) ; |
| | 50 | } |
| | 51 | |
| 40 | 52 | project boost/thread |
| 41 | 53 | : source-location ../src |
| 42 | 54 | : requirements <threading>multi |
| … |
… |
project boost/thread
|
| 106 | 118 | <toolset>intel:<cxxflags>-wd1418 |
| 107 | 119 | <toolset>intel:<cxxflags>-wd2415 |
| 108 | 120 | |
| | 121 | <conditional>@set_build_threadapi |
| 109 | 122 | |
| 110 | 123 | # : default-build <threading>multi |
| 111 | 124 | : usage-requirements # pass these requirement to dependents (i.e. users) |
| … |
… |
local rule default_threadapi ( )
|
| 125 | 138 | return $(api) ; |
| 126 | 139 | } |
| 127 | 140 | |
| 128 | | feature.feature threadapi : pthread win32 : propagated ; |
| 129 | 141 | feature.set-default threadapi : [ default_threadapi ] ; |
| 130 | 142 | |
| 131 | 143 | rule tag ( name : type ? : property-set ) |