Skip to content

Commit

Permalink
use a single codegen-unit with the dev profile
Browse files Browse the repository at this point in the history
rust-lang/rust#44853 changed the default number of codegen units from 1 to 32 for the dev profile.
Unfortunately this broke our dev builds so we are reverting the change in the Cargo.toml.
  • Loading branch information
japaric committed Oct 2, 2017
1 parent a8a02d9 commit 831a34c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["arm", "cortex-m", "template"]
license = "MIT OR Apache-2.0"
name = "cortex-m-quickstart"
repository = "https://github.com/japaric/cortex-m-quickstart"
version = "0.2.1"
version = "0.2.2"

[dependencies]
cortex-m = "0.3.0"
Expand All @@ -16,6 +16,9 @@ cortex-m-semihosting = "0.2.0"
features = ["abort-on-panic"]
version = "0.3.3"

[profile.dev]
codegen-units = 1

[profile.release]
debug = true
lto = true

0 comments on commit 831a34c

Please sign in to comment.