Repository navigation
Restructure bazelrc for reproducible builds - #2492
Conversation
8dbcc45 to
cb995ed
Compare
cb995ed to
b30d580
Compare
|
Ping @stellaraccident? |
b30d580 to
e50a8b2
Compare
e50a8b2 to
a6c60ec
Compare
| # Import the main bazelrc config. This is in a separate file so that it's easy | ||
| # to turn off all user bazelrc options by specifying | ||
| # `--nosystem_rc --nohome_rc --noworkspace_rc --bazelrc=build_tools/bazel/iree.bazelrc` | ||
| try-import %workspace%/build_tools/bazel/iree.bazelrc |
There was a problem hiding this comment.
I'm on the fence about this being nested under ./build_tools/bazel/. Each of the other *.bazelrc files is in the root... but we'd like to minimize the number of files in the root if possible. I guess the parallel to https://github.com/google/iree/blob/main/build_tools/cmake/iree_copts.cmake makes this less of an issue?
There was a problem hiding this comment.
The other bazelrc are added by users though and in the .gitignore. They seem much more akin to user dot files and as untracked files need to be easy to find. My rationale here was that we should stick as much build_tools related stuff under build_tools. Honestly I thought you'd be thrilled that I didn't add another file at root 😛
Moves the bulk of our bazelrc to a separate directory and then imports
it in the workspace bazelrc. This allows us to remove the workspace rc
from CI build scripts, which means that when running them locally we're
actually running with the same flags for reproducible builds and cache
hits.