@@ -252,7 +252,6 @@ def _is_arch_supported_for_target_tuple(*, environment_arch, minimum_os_version,
252
252
def _command_line_options (
253
253
* ,
254
254
apple_platforms = [],
255
- emit_swiftinterface = False ,
256
255
environment_arch = None ,
257
256
force_bundle_outputs = False ,
258
257
minimum_os_version ,
@@ -267,8 +266,6 @@ def _command_line_options(
267
266
first element will be applied to `platforms` as that will be what is resolved by the
268
267
underlying rule. Defaults to an empty list, which will signal to Bazel that platform
269
268
mapping can take place as a fallback measure.
270
- emit_swiftinterface: Wheither to emit swift interfaces for the given target. Defaults to
271
- `False`.
272
269
environment_arch: A valid Apple environment when applicable with its architecture as a
273
270
string (for example `sim_arm64` from `ios_sim_arm64`, or `arm64` from `ios_arm64`), or
274
271
None to infer a value from command line options passed through settings.
@@ -339,7 +336,6 @@ def _command_line_options(
339
336
platform = "watchos" ,
340
337
platform_type = platform_type ,
341
338
),
342
- "@build_bazel_rules_swift//swift:emit_swiftinterface" : emit_swiftinterface ,
343
339
}
344
340
345
341
def _apple_rule_base_transition_impl (settings , attr ):
@@ -351,7 +347,6 @@ def _apple_rule_base_transition_impl(settings, attr):
351
347
# PATCH: end
352
348
353
349
return _command_line_options (
354
- emit_swiftinterface = hasattr (attr , "_emitswiftinterface" ),
355
350
environment_arch = _environment_archs (platform_type , settings )[0 ],
356
351
minimum_os_version = minimum_os_version ,
357
352
platform_type = platform_type ,
@@ -401,7 +396,6 @@ _apple_rule_base_transition_outputs = [
401
396
"//command_line_option:platforms" ,
402
397
"//command_line_option:tvos_minimum_os" ,
403
398
"//command_line_option:watchos_minimum_os" ,
404
- "@build_bazel_rules_swift//swift:emit_swiftinterface" ,
405
399
]
406
400
407
401
_apple_rule_base_transition = transition (
@@ -420,11 +414,6 @@ def _apple_platform_split_transition_impl(settings, attr):
420
414
minimum_os_version = _rules_ios_minimum_os_version (platform_type , attr )
421
415
# PATCH: end
422
416
423
- # iOS and tvOS static frameworks require underlying swift_library targets generate a Swift
424
- # interface file. These rules define a private attribute called `_emitswiftinterface` that
425
- # let's this transition flip rules_swift config down the build graph.
426
- emit_swiftinterface = hasattr (attr , "_emitswiftinterface" )
427
-
428
417
if settings ["//command_line_option:incompatible_enable_apple_toolchain_resolution" ]:
429
418
platforms = (
430
419
settings ["//command_line_option:apple_platforms" ] or
@@ -445,7 +434,6 @@ def _apple_platform_split_transition_impl(settings, attr):
445
434
if str (platform ) not in output_dictionary :
446
435
output_dictionary [str (platform )] = _command_line_options (
447
436
apple_platforms = apple_platforms ,
448
- emit_swiftinterface = emit_swiftinterface ,
449
437
minimum_os_version = minimum_os_version ,
450
438
platform_type = platform_type ,
451
439
settings = settings ,
@@ -492,7 +480,6 @@ def _apple_platform_split_transition_impl(settings, attr):
492
480
continue
493
481
494
482
output_dictionary [found_cpu ] = _command_line_options (
495
- emit_swiftinterface = emit_swiftinterface ,
496
483
environment_arch = environment_arch ,
497
484
minimum_os_version = minimum_os_version ,
498
485
platform_type = platform_type ,
0 commit comments