@@ -66,10 +66,9 @@ explicit WinDbgCached ;
66
66
rule build-stacktrace-noop ( props * )
67
67
{
68
68
local enabled = [ property.select <boost.stacktrace.noop> : $(props) ] ;
69
- switch $(enabled:G=)
69
+ if $(enabled:G=) = "off"
70
70
{
71
- case "on" : return ;
72
- case "off" : return <build>no ;
71
+ return <build>no ;
73
72
}
74
73
}
75
74
@@ -79,7 +78,6 @@ lib boost_stacktrace_noop
79
78
: # requirements
80
79
<warnings>all
81
80
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
82
- # Enable build when explicitly requested
83
81
<conditional>@build-stacktrace-noop
84
82
: # default build
85
83
: # usage-requirements
@@ -90,10 +88,9 @@ lib boost_stacktrace_noop
90
88
rule build-stacktrace-backtrace ( props * )
91
89
{
92
90
local enabled = [ property.select <boost.stacktrace.backtrace> : $(props) ] ;
93
- switch $(enabled:G=)
91
+ if $(enabled:G=) = "off"
94
92
{
95
- case "on" : return ;
96
- case "off" : return <build>no ;
93
+ return <build>no ;
97
94
}
98
95
}
99
96
@@ -105,8 +102,8 @@ lib boost_stacktrace_backtrace
105
102
<target-os>linux:<library>dl
106
103
<library>backtrace
107
104
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
108
- [ check-target-builds libbacktrace : : <build>no ]
109
105
<conditional>@build-stacktrace-backtrace
106
+ [ check-target-builds libbacktrace : : <build>no ]
110
107
: # default build
111
108
: # usage-requirements
112
109
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -116,10 +113,9 @@ lib boost_stacktrace_backtrace
116
113
rule build-stacktrace-addr2line ( props * )
117
114
{
118
115
local enabled = [ property.select <boost.stacktrace.addr2line> : $(props) ] ;
119
- switch $(enabled:G=)
116
+ if $(enabled:G=) = "off"
120
117
{
121
- case "on" : return ;
122
- case "off" : return <build>no ;
118
+ return <build>no ;
123
119
}
124
120
125
121
# Disable by default on Windows when not using Cygwin
@@ -136,8 +132,8 @@ lib boost_stacktrace_addr2line
136
132
<warnings>all
137
133
<target-os>linux:<library>dl
138
134
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
139
- [ check-target-builds addr2line : : <build>no ]
140
135
<conditional>@build-stacktrace-addr2line
136
+ [ check-target-builds addr2line : : <build>no ]
141
137
: # default build
142
138
: # usage-requirements
143
139
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -147,10 +143,9 @@ lib boost_stacktrace_addr2line
147
143
rule build-stacktrace-basic ( props * )
148
144
{
149
145
local enabled = [ property.select <boost.stacktrace.basic> : $(props) ] ;
150
- switch $(enabled:G=)
146
+ if $(enabled:G=) = "off"
151
147
{
152
- case "on" : return ;
153
- case "off" : return <build>no ;
148
+ return <build>no ;
154
149
}
155
150
}
156
151
@@ -161,8 +156,8 @@ lib boost_stacktrace_basic
161
156
<warnings>all
162
157
<target-os>linux:<library>dl
163
158
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
164
- [ check-target-builds WinDbg : <build>no ]
165
159
<conditional>@build-stacktrace-basic
160
+ [ check-target-builds WinDbg : <build>no ]
166
161
: # default build
167
162
: # usage-requirements
168
163
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -172,10 +167,9 @@ lib boost_stacktrace_basic
172
167
rule build-stacktrace-windbg ( props * )
173
168
{
174
169
local enabled = [ property.select <boost.stacktrace.windbg> : $(props) ] ;
175
- switch $(enabled:G=)
170
+ if $(enabled:G=) = "off"
176
171
{
177
- case "on" : return ;
178
- case "off" : return <build>no ;
172
+ return <build>no ;
179
173
}
180
174
}
181
175
@@ -186,8 +180,8 @@ lib boost_stacktrace_windbg
186
180
<warnings>all
187
181
<library>Dbgeng <library>ole32
188
182
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
189
- [ check-target-builds WinDbg : : <build>no ]
190
183
<conditional>@build-stacktrace-windbg
184
+ [ check-target-builds WinDbg : : <build>no ]
191
185
: # default build
192
186
: # usage-requirements
193
187
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -197,10 +191,9 @@ lib boost_stacktrace_windbg
197
191
rule build-stacktrace-windbg-cached ( props * )
198
192
{
199
193
local enabled = [ property.select <boost.stacktrace.windbg_cached> : $(props) ] ;
200
- switch $(enabled:G=)
194
+ if $(enabled:G=) = "off"
201
195
{
202
- case "on" : return ;
203
- case "off" : return <build>no ;
196
+ return <build>no ;
204
197
}
205
198
}
206
199
@@ -211,8 +204,8 @@ lib boost_stacktrace_windbg_cached
211
204
<warnings>all
212
205
<library>Dbgeng <library>ole32
213
206
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
214
- [ check-target-builds WinDbgCached : : <build>no ]
215
207
<conditional>@build-stacktrace-windbg-cached
208
+ [ check-target-builds WinDbgCached : : <build>no ]
216
209
: # default build
217
210
: # usage-requirements
218
211
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -222,10 +215,9 @@ lib boost_stacktrace_windbg_cached
222
215
rule build-stacktrace-from-exception ( props * )
223
216
{
224
217
local enabled = [ property.select <boost.stacktrace.from_exception> : $(props) ] ;
225
- switch $(enabled:G=)
218
+ if $(enabled:G=) = "off"
226
219
{
227
- case "on" : return ;
228
- case "off" : return <build>no ;
220
+ return <build>no ;
229
221
}
230
222
231
223
local arch = [ property.select <architecture> : $(props) ] ;
@@ -244,9 +236,6 @@ lib boost_stacktrace_from_exception
244
236
245
237
# Enable build when explicitly requested, or by default, when on x86
246
238
<conditional>@build-stacktrace-from-exception
247
-
248
- # Require usable libbacktrace on other platforms
249
- # [ check-target-builds libbacktrace : : <build>no ]
250
239
: # default build
251
240
: # usage-requirements
252
241
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
0 commit comments