2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-25 17:31:25 +00:00

Use forward compatible version of _configure_features (#271)

This PR fixes the bug introduced in https://github.com/bazelbuild/rules_foreign_cc/pull/270.

hlopko@ should not be allowed to code undercaffeinated.
This commit is contained in:
Marcel Hlopko 2019-05-28 10:55:13 +02:00 committed by irengrig
parent 3990f265ee
commit 6b2f454a41

View file

@ -220,7 +220,7 @@ def create_linking_info(ctx, user_link_flags, files):
def get_env_vars(ctx):
cc_toolchain = find_cpp_toolchain(ctx)
feature_configuration = cc_common.configure_features(
feature_configuration = _configure_features(
ctx = ctx,
cc_toolchain = cc_toolchain,
)
@ -250,7 +250,7 @@ def get_tools_info(ctx):
ctx - rule context
"""
cc_toolchain = find_cpp_toolchain(ctx)
feature_configuration = cc_common.configure_features(
feature_configuration = _configure_features(
ctx = ctx,
cc_toolchain = cc_toolchain,
)
@ -280,7 +280,7 @@ def get_flags_info(ctx):
ctx - rule context
"""
cc_toolchain_ = find_cpp_toolchain(ctx)
feature_configuration = cc_common.configure_features(
feature_configuration = _configure_features(
ctx = ctx,
cc_toolchain = cc_toolchain_,
)