Skip to content

Conversation

@yuriivcs
Copy link
Collaborator

@yuriivcs yuriivcs commented Jan 13, 2026

Fix -c dbg flag.
Now toolchains support 3 flags:

fastbuild (The Default)
This is the mode Bazel uses if developers don't specify anything. It is designed for the inner loop of development where you want the fastest possible feedback.

dbg (Debug)
Developers use this mode when they need to step through code with a debugger.

opt (Optimized)
This mode is for production or performance benchmarking.

ML projects frequently override default settings in their .bazelrc files. For instance, in JAX, the compilation mode is explicitly set to opt, effectively superseding the toolchain's native fastbuild default. Example:

# Enable optimization.
common -c opt

For tests where build times significantly outweigh execution time, switching to -c fastbuild can potentially improve CI performance.

@yuriivcs yuriivcs requested a review from ybaturina January 13, 2026 02:05
@yuriivcs yuriivcs merged commit e37aa89 into google-ml-infra:main Jan 14, 2026
2 checks passed
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