File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -168,17 +168,17 @@ class HostSpecificConfiguration(object):
168
168
if build_benchmarks :
169
169
self .swift_benchmark_build_targets .append (
170
170
"swift-benchmark-" + name )
171
- # FIXME: This probably should respect `args.benchmark`, but
172
- # a typo in build-script-impl meant we always would do this.
173
- self .swift_benchmark_run_targets .append (
174
- "check-swift-benchmark-" + name )
171
+ if args .benchmark :
172
+ self .swift_benchmark_run_targets .append (
173
+ "check-swift-benchmark-" + name )
175
174
176
175
if build_external_benchmarks :
177
176
# Add support for the external benchmarks.
178
177
self .swift_benchmark_build_targets .append (
179
178
"swift-benchmark-{}-external" .format (name ))
180
- self .swift_benchmark_run_targets .append (
181
- "check-swift-benchmark-{}-external" .format (name ))
179
+ if args .benchmark :
180
+ self .swift_benchmark_run_targets .append (
181
+ "check-swift-benchmark-{}-external" .format (name ))
182
182
if test :
183
183
if test_host_only :
184
184
suffix = "-non-executable"
Original file line number Diff line number Diff line change @@ -1389,7 +1389,7 @@ function calculate_targets_for_host() {
1389
1389
fi
1390
1390
if [[ " ${build_benchmark_this_target} " ]] && [[ " ${is_in_build_list} " ]]; then
1391
1391
SWIFT_BENCHMARK_TARGETS+=(" swift-benchmark-${stdlib_deployment_target} " )
1392
- if [[ $( not ${SKIP_TEST_BENCHMARK } ) ]] ; then
1392
+ if [[ $( not ${SKIP_TEST_BENCHMARKS } ) ]] ; then
1393
1393
SWIFT_RUN_BENCHMARK_TARGETS+=(" check-swift-benchmark-${stdlib_deployment_target} " )
1394
1394
fi
1395
1395
fi
@@ -1398,7 +1398,7 @@ function calculate_targets_for_host() {
1398
1398
[[ " ${build_external_benchmark_this_target} " ]] &&
1399
1399
[[ " ${is_in_build_list} " ]] ; then
1400
1400
SWIFT_BENCHMARK_TARGETS+=(" swift-benchmark-${stdlib_deployment_target} -external" )
1401
- if [[ $( not ${SKIP_TEST_BENCHMARK } ) ]] ; then
1401
+ if [[ $( not ${SKIP_TEST_BENCHMARKS } ) ]] ; then
1402
1402
SWIFT_RUN_BENCHMARK_TARGETS+=(" check-swift-benchmark-${stdlib_deployment_target} -external" )
1403
1403
fi
1404
1404
fi
@@ -1811,8 +1811,7 @@ for host in "${ALL_HOSTS[@]}"; do
1811
1811
echo " Running Swift tests for: ${SWIFT_TEST_TARGETS[@]} "
1812
1812
fi
1813
1813
if ! [[ " ${SKIP_TEST_BENCHMARKS} " ]] &&
1814
- [[ " ${SWIFT_RUN_BENCHMARK_TARGETS[@]} " ]] &&
1815
- ! [[ " ${SKIP_TEST_BENCHMARK} " ]]; then
1814
+ [[ " ${SWIFT_RUN_BENCHMARK_TARGETS[@]} " ]]; then
1816
1815
echo " Running Swift benchmarks for: ${SWIFT_RUN_BENCHMARK_TARGETS[@]} "
1817
1816
fi
1818
1817
fi
You can’t perform that action at this time.
0 commit comments