Skip to content

Commit

Permalink
Use 'import' instead of 'try-import' in .bazelrc. (iree-org#12981)
Browse files Browse the repository at this point in the history
I've seen that it is far to easy to end up on a path where the configure
script has not been run, and this is very unsupported. Better that this
is a hard error instead of a support message.
  • Loading branch information
Stella Laurenzo authored Apr 11, 2023
1 parent df7522b commit 04318d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
# Import the main bazelrc config. This is in a separate file so that it's
# possible to turn off some or all user and system bazelrc options by specifying
# `--nosystem_rc --nohome_rc --noworkspace_rc --bazelrc=build_tools/bazel/iree.bazelrc`
try-import %workspace%/build_tools/bazel/iree.bazelrc
import %workspace%/build_tools/bazel/iree.bazelrc

# Run the configure_bazel.py script to generate.
try-import %workspace%/configured.bazelrc
import %workspace%/configured.bazelrc

# The user.bazelrc file is not checked in but available for local mods.
# Always keep this at the end of the file so that user flags override.
Expand Down

0 comments on commit 04318d7

Please sign in to comment.