-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tools] Add cmake_configure_files (plural) macro #19952
[tools] Add cmake_configure_files (plural) macro #19952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: 2 unresolved discussions
tools/workspace/cmake_configure_file.bzl
line 101 at r1 (raw file):
) def cmake_configure_files(
BTW, can you refer me to a place where this new function is used?
Code quote:
def cmake_configure_files(
tools/workspace/cmake_configure_file.py
line 163 at r1 (raw file):
and len(args.input) > 0): parser.print_usage() sys.exit(1)
nit, is there a useful error message if len(args.input) == 0
?
Code quote:
sys.exit(1)
This is important when configuring multiple files with the same bag of definitions, so `strict = True` mode still makes sense. Improve the diagnostic output to show *all* missing definitions, not just the first one. This helps a lot during Local development.
b24fdda
to
dfe40d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 unresolved discussion
tools/workspace/cmake_configure_file.bzl
line 101 at r1 (raw file):
Previously, xuchenhan-tri wrote…
BTW, can you refer me to a place where this new function is used?
It's used in #19945.
tools/workspace/cmake_configure_file.py
line 163 at r1 (raw file):
Previously, xuchenhan-tri wrote…
nit, is there a useful error message if
len(args.input) == 0
?
Now there is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all discussions resolved, LGTM from assignee xuchenhan-tri(platform)
Towards #19945.
+@xuchenhan-tri for both reviews (off-schedule), please.
This change is