Skip to content

Commit 61ea9c2

Browse files
A Googlercopybara-github
authored andcommitted
Automated rollback of commit 68ac1a0.
PiperOrigin-RevId: 769224712 Change-Id: I6b63fbff7d551412fbad8b5b98eea7da94e09884
1 parent 68ac1a0 commit 61ea9c2

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

rules/native_deps.bzl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,12 @@ def _link_native_deps_if_present(ctx, cc_info, cc_toolchain, build_config, targe
363363
for input in all_inputs:
364364
needs_linking = needs_linking or _contains_code_to_link(input)
365365

366-
if not needs_linking or cc_common.is_enabled(
367-
feature_name = "disable_fallback_native_deps_linking",
368-
feature_configuration = cc_common.configure_features(
369-
ctx = ctx,
370-
cc_toolchain = cc_toolchain,
371-
unsupported_features = ctx.disabled_features,
372-
),
373-
):
366+
if not needs_linking or cc_common.configure_features(
367+
ctx = ctx,
368+
cc_toolchain = cc_toolchain,
369+
unsupported_features = ctx.disabled_features,
370+
requested_features = ctx.features,
371+
).is_requested("disable_fallback_native_deps_linking"):
374372
return None
375373

376374
# This does not need to be shareable, but we use this API to specify the

0 commit comments

Comments
 (0)