Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b082bb

Browse filesBrowse files
authored
internal(pystar): use rules_python PyCcLinkParamsProvider if pystar is enabled (bazel-contrib#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 bazel-contrib#1069
1 parent 74653d5 commit 5b082bb
Copy full SHA for 5b082bb

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎python/py_cc_link_params_info.bzl

Copy file name to clipboard
+4-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.