From ac2de5fd27842acb5d723e913a35e4ebb15812f9 Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Tue, 10 Dec 2024 02:16:19 -0500 Subject: [PATCH] To always link swift-atomics. --- external/swift-atomics.BUILD | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/external/swift-atomics.BUILD b/external/swift-atomics.BUILD index 9d5cc1ee9..04b7da31b 100644 --- a/external/swift-atomics.BUILD +++ b/external/swift-atomics.BUILD @@ -1,9 +1,5 @@ load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") -package( - default_visibility = ["//visibility:public"], -) - cc_library( name = "_AtomicsShims", srcs = ["Sources/_AtomicsShims/src/_AtomicsShims.c"], @@ -20,7 +16,9 @@ swift_library( "Sources/Atomics/**/*.swift", ]), module_name = "Atomics", + visibility = ["//visibility:public"], deps = [ ":_AtomicsShims", ], + alwayslink = True, )