File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 6
6
#
7
7
8
8
import feature ;
9
+ import property ;
9
10
import ../../config/checks/config : requires ;
10
11
11
12
project
@@ -134,15 +135,31 @@ lib boost_stacktrace_windbg_cached
134
135
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
135
136
;
136
137
138
+ rule build-stacktrace-from-exception ( props * )
139
+ {
140
+ local enabled = [ property.select <boost.stacktrace.from_exception> : $(props) ] ;
141
+ switch $(enabled:G=)
142
+ {
143
+ case "on" : return ;
144
+ case "off" : return <build>no ;
145
+ }
146
+
147
+ local arch = [ property.select <architecture> : $(props) ] ;
148
+ if $(arch) && ( $(arch:G=) != x86 )
149
+ {
150
+ return <build>no ;
151
+ }
152
+ }
153
+
137
154
lib boost_stacktrace_from_exception
138
155
: # sources
139
156
../src/from_exception.cpp
140
157
: # requirements
141
158
<warnings>all
142
159
<target-os>linux:<library>dl
143
160
144
- # Command line option to disable build
145
- <boost.stacktrace.from_exception>off:< build>no
161
+ # Enable build when explicitly requested, or by default, when on x86
162
+ <conditional>@ build-stacktrace-from-exception
146
163
147
164
# Require usable libbacktrace on other platforms
148
165
#[ check-target-builds ../build//libbacktrace : : <build>no ]
You can’t perform that action at this time.
0 commit comments