@@ -282,17 +282,6 @@ def _swift_test_impl(ctx):
282
282
discover_tests = ctx .attr .discover_tests
283
283
objc_test_discovery = swift_toolchain .test_configuration .objc_test_discovery
284
284
285
- # `is_feature_enabled` isn't used, as it requires the prefix of the feature
286
- # to start with `swift.`
287
- swizzle_absolute_xcttestsourcelocation = (
288
- "apple.swizzle_absolute_xcttestsourcelocation" in
289
- feature_configuration ._enabled_features
290
- )
291
-
292
- extra_link_deps = []
293
- if swizzle_absolute_xcttestsourcelocation :
294
- extra_link_deps .append (ctx .attr ._swizzle_absolute_xcttestsourcelocation )
295
-
296
285
deps = list (ctx .attr .deps )
297
286
test_runner_deps = list (ctx .attr ._test_runner_deps )
298
287
@@ -305,6 +294,17 @@ def _swift_test_impl(ctx):
305
294
else :
306
295
additional_link_deps = []
307
296
297
+ # `is_feature_enabled` isn't used, as it requires the prefix of the feature
298
+ # to start with `swift.`
299
+ swizzle_absolute_xcttestsourcelocation = (
300
+ "apple.swizzle_absolute_xcttestsourcelocation" in
301
+ feature_configuration ._enabled_features
302
+ )
303
+ if swizzle_absolute_xcttestsourcelocation :
304
+ additional_link_deps .append (
305
+ ctx .attr ._swizzle_absolute_xcttestsourcelocation ,
306
+ )
307
+
308
308
# We also need to collect nested providers from `SwiftBinaryInfo` since we
309
309
# support testing those.
310
310
deps_cc_infos = []
0 commit comments