-
Notifications
You must be signed in to change notification settings - Fork 630
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
Replace all globs in IREE core with enforce_glob
#5063
Conversation
enforce_glob
@@ -43,6 +43,7 @@ def _deep_copy_recursion_depth_1(x): | |||
|
|||
def deep_copy(x): | |||
"""Returns a copy of the argument, making a deep copy if it is a container. | |||
|
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.
Uh... this has nothing to do with the change. I apparently just fixed a thing buildifier was complaining about. I can revert
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.
Awesome! I really like this.
These come from midair collision between iree-org#5063 and iree-org#4881
Midair collision between iree-org#4999 and iree-org#5063
This avoids any globs of source files in CMake (which are
discouraged)
and any globs being evaluated in bazel_to_cmake (which would make it
depend on files other than the BUILD file). It still allows the safety
check that you actually included all the files you meant to (which is
particularly useful with tests, where a failure to do so is test
skipped forever instead of an immediate build failure). The cost is
having to explicitly list a new source file when you add it, which
seems not so bad.
I didn't remove bazel_to_cmake support for glob yet, so I can clean up
any stragglers after this lands.
Fixes #1083