Take into account alwayslink in objc_library
When creating a library_to_link from an artifact in objc_library. Take into
account if we are dealing with a *.lo file, if that's the case, set alwayslink
to True.
RELNOTES:none
@@ -85,11 +85,15 @@ def _static_library(
feature_configuration,
cc_toolchain,
library):
+ alwayslink = False
+ if library.extension == "lo":
+ alwayslink = True
return cc_common.create_library_to_link(
actions = ctx.actions,
feature_configuration = feature_configuration,
cc_toolchain = cc_toolchain,
static_library = library,
+ alwayslink = True,
)
def _to_static_library(
