Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rkayaith
Copy link
Member

The gitignore path is currently wrong (it should be iree/build, not iree/compiler/build). This switches to selectively ignoring build directories instead of selectively un-ignoring, since that seems safer.

Comment on lines 21 to -29
# CMake artifacts
build/
build-*/
/build/
/build-*/
Testing/
# Include iree.build package
!compiler/bindings/python/iree/compiler/build/
Copy link
Member

Choose a reason for hiding this comment

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

This is more nuanced, see #18630 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have full context on those compiler/build/ and runtime/build/ directories, but if they're just temporary outputs of the packaging process that can be cleaned up after, I don't think they should be git-ignored - that just makes them harder to notice. But I also think almost none of the stuff we have ignored currently should actually be there (people should use a local gitignore config instead).

I'm happy to defer to you guys though, let me know if you'd like those paths added and I can do that.

Copy link
Member

Choose a reason for hiding this comment

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

They are build directories from building Python packages using https://github.com/iree-org/iree/blob/main/compiler/setup.py and https://github.com/iree-org/iree/blob/main/runtime/setup.py. Standard stuff, hundreds/thousands of generated files. Could be moved to subfolder .gitignore files or the pattern could be changed here, but they need to be excluded for all developers.

@rkayaith rkayaith force-pushed the iree-build-gitignore branch from c6d2000 to fbed32a Compare November 3, 2025 16:14
@rkayaith rkayaith requested a review from ScottTodd November 4, 2025 19:01
@rkayaith rkayaith merged commit 7667525 into iree-org:main Nov 5, 2025
25 checks passed
@rkayaith rkayaith deleted the iree-build-gitignore branch November 5, 2025 17:37
bangtianliu pushed a commit to bangtianliu/iree that referenced this pull request Nov 19, 2025
The gitignore path is currently wrong (it should be `iree/build`, not
`iree/compiler/build`). This switches to selectively ignoring `build`
directories instead of selectively un-ignoring, since that seems safer.
pstarkcdpr pushed a commit to pstarkcdpr/iree that referenced this pull request Nov 28, 2025
The gitignore path is currently wrong (it should be `iree/build`, not
`iree/compiler/build`). This switches to selectively ignoring `build`
directories instead of selectively un-ignoring, since that seems safer.
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.

2 participants