Skip to content

Commit

Permalink
[no-bench] Put release profile in config.toml to avoid issues with wo…
Browse files Browse the repository at this point in the history
…rkspace.
  • Loading branch information
caibear committed Jul 14, 2023
1 parent 5293817 commit 6ee264a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,3 @@ name = "bench"
lto = true
# Uncomment this to profile
# debug = true

[profile.release.package.pages]
codegen-units = 1
opt-level = "z"
strip = "debuginfo"
13 changes: 6 additions & 7 deletions pages/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[build]
# panic and lto cannot be configured via package profile, so we manually
# add the it to the rustflags for this crate
rustflags = [
"-Cpanic=abort",
"-Clinker-plugin-lto=true",
]
[profile.release]
codegen-units = 1
lto = "fat"
opt-level = 'z'
panic = "abort"
strip = "debuginfo"

[unstable]
build-std = ["std", "panic_abort"]
Expand Down

0 comments on commit 6ee264a

Please sign in to comment.