From daea615b2b29bff39d66b17af2efb0ab5b2eabb1 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Tue, 24 Oct 2023 11:54:48 -0700 Subject: [PATCH] internal(pystar): use rules_python PyCcLinkParamsProvider if pystar enabled The PyCcLinkParamsInfo export wasn't respecting the `config.enable_pystar` setting. Work towards #1069 --- python/py_cc_link_params_info.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/py_cc_link_params_info.bzl b/python/py_cc_link_params_info.bzl index 0ebd64b208..42d8daf221 100644 --- a/python/py_cc_link_params_info.bzl +++ b/python/py_cc_link_params_info.bzl @@ -1,3 +1,6 @@ """Public entry point for PyCcLinkParamsInfo.""" -PyCcLinkParamsInfo = PyCcLinkParamsProvider +load("@rules_python_internal//:rules_python_config.bzl", "config") +load("//python/private/common:providers.bzl", _starlark_PyCcLinkParamsProvider = "PyCcLinkParamsProvider") + +PyCcLinkParamsInfo = _starlark_PyCcLinkParamsProvider if config.enable_pystar else PyCcLinkParamsProvider