Skip to content

Commit 384c040

Browse files
authored
Merge pull request #18641 from github/aibaars/bazel-rust-opt
Rust: build optimized code
2 parents a0af4c9 + 4e3c23b commit 384c040

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ common --enable_platform_specific_config
22
# because we use --override_module with `%workspace%`, the lock file is not stable
33
common --lockfile_mode=off
44

5+
# Build release binaries by default, can be overwritten to in local.bazelrc and set to `fastbuild` or `dbg`
6+
build --compilation_mode opt
7+
58
# when building from this repository in isolation, the internal repository will not be found at ..
69
# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so
710
# that we can build things that do not rely on that

0 commit comments

Comments
 (0)