Skip to content

Commit 5b082bb

Browse files
authored
internal(pystar): use rules_python PyCcLinkParamsProvider if pystar is enabled (#1517)
The PyCcLinkParamsInfo export wasn't respecting the `config.enable_pystar` setting. This would cause the Starlark implementation to look up the wrong provider symbol and result in an error later. Work towards #1069
1 parent 74653d5 commit 5b082bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/py_cc_link_params_info.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
"""Public entry point for PyCcLinkParamsInfo."""
22

3-
PyCcLinkParamsInfo = PyCcLinkParamsProvider
3+
load("@rules_python_internal//:rules_python_config.bzl", "config")
4+
load("//python/private/common:providers.bzl", _starlark_PyCcLinkParamsProvider = "PyCcLinkParamsProvider")
5+
6+
PyCcLinkParamsInfo = _starlark_PyCcLinkParamsProvider if config.enable_pystar else PyCcLinkParamsProvider

0 commit comments

Comments
 (0)