Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: Configure optimized/release builds #27033

Open
ParkMyCar opened this issue May 10, 2024 · 0 comments
Open

bazel: Configure optimized/release builds #27033

ParkMyCar opened this issue May 10, 2024 · 0 comments
Labels
A-build Area: build systems (Bazel, Rust, etc.)

Comments

@ParkMyCar
Copy link
Member

Bazel allows for configurable compilation, e.g. via the select({ ... }) function, which allows us to specify different build flags based on CLI args. This is one way to configure release builds, but it also has a compilation_mode argument which is specifically for debug and optimized builds and cpu argument which specifies the CPU arch for compilation.

It seems like using --compilation-mode and --cpu we should be able to build the most optimized binary possible, but we should confirm this all works. Specifically I'm not sure how well these are supported in rules_rust

Related: #26796

@ParkMyCar ParkMyCar added the A-build Area: build systems (Bazel, Rust, etc.) label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build Area: build systems (Bazel, Rust, etc.)
Projects
None yet
Development

No branches or pull requests

1 participant