def swift_toolchain(
*,
name: str,
default_target_platform: None | str = None,
target_compatible_with: list[str] = [],
compatible_with: list[str] = [],
exec_compatible_with: list[str] = [],
visibility: list[str] = [],
within_view: list[str] = ["PUBLIC"],
metadata: OpaqueMetadata = {},
tests: list[str] = [],
modifiers: OpaqueMetadata = [],
_apple_platforms: dict[str, str] = {},
_internal_sdk_path: None | str = None,
_library_interface_uses_swiftinterface: bool = select({"prelude//features/apple:swift_library_interface_uses_swiftinterface_enabled": True, "DEFAULT": False}),
_swiftc_wrapper: str = "prelude//apple/tools:swift_exec",
architecture: str,
contacts: list[str] = [],
default_host_platform: None | str = None,
labels: list[str] = [],
licenses: list[str] = [],
make_swift_comp_db: str = "prelude//apple/tools:make_swift_comp_db",
make_swift_interface: str = "prelude//apple/tools:make_swift_interface",
object_format: str = "object",
placeholder_tool: None | str = None,
platform_path: None | str = None,
provide_swift_debug_info: bool = True,
resource_dir: None | str = None,
runtime_paths_for_bundling: list[str] = [],
runtime_paths_for_linking: list[str] = [],
sdk_module_path_prefixes: dict[str, str] = {},
sdk_modules: list[str] = [],
sdk_path: None | str = None,
serialized_diags_to_json: None | str = None,
supports_explicit_module_debug_serialization: bool = False,
supports_relative_resource_dir: bool = False,
swift_experimental_features: dict[str, list[str]] = {"5": [], "6": []},
swift_ide_test_tool: None | str = None,
swift_stdlib_tool: str,
swift_stdlib_tool_flags: list[str] = [],
swift_upcoming_features: dict[str, list[str]] = {"5": [], "6": []},
swiftc: str,
swiftc_flags: list[str] = [],
use_depsfiles: bool = False,
) -> None