Skip to content

Commit

Permalink
Cargo.toml: Streamline profile configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Nov 28, 2021
1 parent fcb41c0 commit d03b3fb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,9 @@ x86 = { version = "0.43", default-features = false }
[build-dependencies]
target_build_utils = "0.3"

# The release profile, used for `cargo build --release`.
[profile.dev]
opt-level = 2 # controls the `--opt-level` the compiler builds with
debug = true # controls whether the compiler passes `-C debuginfo`
# a value of `true` is equivalent to `2`
rpath = false # controls whether the compiler passes `-C rpath`
lto = false # controls `-C lto` for binaries and staticlibs
debug-assertions = true # controls whether debug assertions are enabled
opt-level = 1 # `opt-level = 0` makes bootloader to large for bootstrapping

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1

0 comments on commit d03b3fb

Please # to comment.