Skip to content

Commit

Permalink
chore: enable parallel frontend for rustc (#19331)
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao authored Nov 12, 2024
1 parent b141881 commit 12fbf12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cargo-features = ["profile-rustflags"]

[workspace]
members = [
"src/batch",
Expand Down Expand Up @@ -295,6 +297,9 @@ redundant_explicit_links = "allow"
# See `docs/dev/src/build-and-run/profiles.md` for detailed information.
[profile.dev]
lto = "off"
# use parallel frontend to speed up build
# TODO: may consider applying to release/production profile as well
rustflags = ["-Z", "threads=8"]

[profile.release]
debug = "full"
Expand Down

0 comments on commit 12fbf12

Please sign in to comment.