File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ import "class" : new ;
140
140
import property-set ;
141
141
import threadapi-feature ;
142
142
import option ;
143
+ import property ;
143
144
# Backslash because of `bcp --namespace`
144
145
import tools/boost\_install/boost-install ;
145
146
@@ -180,6 +181,7 @@ project boost
180
181
# Used to encode variant in target name. See the 'tag' rule below.
181
182
<tag>@$(__name__).tag
182
183
<conditional>@handle-static-runtime
184
+ <conditional>@clang-darwin-cxxstd-11
183
185
# Comeau does not support shared lib
184
186
<toolset>como:<link>static
185
187
<toolset>como-linux:<define>_GNU_SOURCE=1
@@ -226,6 +228,20 @@ rule handle-static-runtime ( properties * )
226
228
}
227
229
}
228
230
231
+ rule clang-darwin-cxxstd-11 ( properties * )
232
+ {
233
+ # AppleClang defaults to C++03
234
+
235
+ local result = [ property.select <cxxstd> : $(properties) ] ;
236
+
237
+ if <toolset-clang:platform>darwin in $(properties)
238
+ {
239
+ result ?= <cxxstd>11 ;
240
+ }
241
+
242
+ return $(result) ;
243
+ }
244
+
229
245
all-libraries = [ MATCH .*libs/(.*)/build/.* : [ glob libs/*/build/Jamfile.v2 ]
230
246
[ glob libs/*/build/Jamfile ] ] ;
231
247
You can’t perform that action at this time.
0 commit comments