Skip to content

[Cleanup] Refactor BUILD file. - #5972

Merged
hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:clean-build
May 21, 2021
Merged

hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:clean-build

Conversation

@hanhanW

@hanhanW hanhanW commented May 21, 2021

Copy link
Copy Markdown
Contributor

This makes us easier to track and add tests.

This makes us easier to track and add tests.
@hanhanW
hanhanW merged commit 74be687 into iree-org:main May 21, 2021
@hanhanW
hanhanW deleted the clean-build branch May 21, 2021 05:39
@hanhanW hanhanW mentioned this pull request May 21, 2021
hanhanW added a commit to hanhanW/iree that referenced this pull request May 21, 2021
This makes us easier to track and add tests.
hanhanW added a commit to hanhanW/iree that referenced this pull request May 21, 2021
This makes us easier to track and add tests.
This was referenced May 21, 2021
copybara-service Bot pushed a commit that referenced this pull request May 21, 2021
* 50f3b8f Fix ordering of inlined operations to ignore ops that are not inlined. (#5979)
* 4287062 Integrate MLIR-EmitC at iml130/mlir-emitc@648145e5 (#5977)
* 995fdc9 Use nvidia deb files that we control (#5967)
* 73a3058 Fix leaks from not freeing status in tests (#5973)
* 114e200 Fix vulkan dynamic library name for MacOS (#5974)
* 74be687 [Cleanup] Refactor BUILD file. (#5972)
* 82afa23 [CUDA-Codegen] Add support for constant tensor (#5966)
* 5c5b549 Update workflows to use new token (#5968)
* b154cd9 Fix tracking of result buffer to use if the buffer eventually maps to low disp..
* c74cb11 Merge google -> main (#5965)

COPYBARA_INTEGRATE_REVIEW=#5985 from hanhanW:main-to-google ce6f1e7
PiperOrigin-RevId: 375167936
iree-github-actions-bot pushed a commit that referenced this pull request May 21, 2021
* 50f3b8f Fix ordering of inlined operations to ignore ops that are not inlined. (#5979)
* 4287062 Integrate MLIR-EmitC at iml130/mlir-emitc@648145e5 (#5977)
* 995fdc9 Use nvidia deb files that we control (#5967)
* 73a3058 Fix leaks from not freeing status in tests (#5973)
* 114e200 Fix vulkan dynamic library name for MacOS (#5974)
* 74be687 [Cleanup] Refactor BUILD file. (#5972)
* 82afa23 [CUDA-Codegen] Add support for constant tensor (#5966)
* 5c5b549 Update workflows to use new token (#5968)
* b154cd9 Fix tracking of result buffer to use if the buffer eventually maps to low disp..
* c74cb11 Merge google -> main (#5965)

PiperOrigin-RevId: 375167936
@GMNGeoffrey

Copy link
Copy Markdown
Member

So I just noticed this, but we actually deliberately removed normal globs from the build files because glob is not well supported in CMake. Requiring explicit lists of files is WAI. enforce_glob provides a mechanism to also ensure that those static lists match an expected glob, but BUILD files should be static wrt the file tree

@GMNGeoffrey

Copy link
Copy Markdown
Member

93a1ff1

Looks like I forgot to remove bazel_to_cmake support for glob

@hanhanW

hanhanW commented May 25, 2021

Copy link
Copy Markdown
Contributor Author

So I just noticed this, but we actually deliberately removed normal globs from the build files because glob is not well supported in CMake. Requiring explicit lists of files is WAI. enforce_glob provides a mechanism to also ensure that those static lists match an expected glob, but BUILD files should be static wrt the file tree

oops, sorry about this. I did not know the difference and should ask you first. I will send out another PR to fix it.

@GMNGeoffrey

Copy link
Copy Markdown
Member

No worries. I should've finished my cleanup and removed glob support from bazel_to_cmake :-)

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