Skip to content

collect_inputs.files: fix docs and and add a check for data#3657

Merged
krasimirgg merged 1 commit intobazelbuild:mainfrom
krasimirgg:fdata
Oct 6, 2025
Merged

collect_inputs.files: fix docs and and add a check for data#3657
krasimirgg merged 1 commit intobazelbuild:mainfrom
krasimirgg:fdata

Conversation

@krasimirgg
Copy link
Copy Markdown
Collaborator

No functional changes intended.

@krasimirgg krasimirgg requested a review from hlopko October 6, 2025 11:58
@krasimirgg krasimirgg marked this pull request as ready for review October 6, 2025 11:58
@krasimirgg krasimirgg added this pull request to the merge queue Oct 6, 2025
Comment thread rust/private/rustc.bzl
# The old default behavior was to include data files at compile time.
# This flag controls whether to include data files in compile_data.
if not toolchain._incompatible_do_not_include_data_in_compile_data:
if hasattr(files, "data") and not toolchain._incompatible_do_not_include_data_in_compile_data:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please flip to if not toolchain._incompatible_do_not_include_data_in_compile_data and hasattr(files, "data"): to avoid adding additional checks for most users (it defaults to True)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, submitted too fast, doing as a follow-up...

Merged via the queue into bazelbuild:main with commit 713ab24 Oct 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants