From 3b9d0cb59a0a55411f9865fc72c016d026c34d55 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 4 Aug 2023 07:17:18 -0700 Subject: [PATCH] Support for alwayslink outputs. Bazel uses a different extension for things that are marked as alwayslink, so support that extension also. PiperOrigin-RevId: 553798483 (cherry picked from commit c9768e0f6c25669b60aeeb7c2c80cb97ef0a8237) --- swift/swift_import.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swift/swift_import.bzl b/swift/swift_import.bzl index 975393d5d..028301b32 100644 --- a/swift/swift_import.bzl +++ b/swift/swift_import.bzl @@ -155,9 +155,9 @@ swift_import = rule( { "archives": attr.label_list( allow_empty = True, - allow_files = ["a"], + allow_files = ["a", "lo"], doc = """\ -The list of `.a` files provided to Swift targets that depend on this target. +The list of `.a` or `.lo` files provided to Swift targets that depend on this target. """, mandatory = False, ),