Reduce codegen units to 1 to ensure build works (#406)

Workaround for #393 

- [x] Changelog updated / no changelog update needed
This commit is contained in:
Gwilym Inzani 2023-04-05 17:20:42 +01:00 committed by GitHub
commit 812e99cef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 2 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Made Vector2D::new a const function.
- The template now uses rust 2021 edition by default.
- All objects which should only be created once now have the correct lifetimes to only allow one to exist.
- Template now uses codegen-units=1 to workaround bug in nightly.
### Fixed
- Alpha channel is now considered by `include_gfx!()` even when `transparent_colour` is absent.

View file

@ -15,6 +15,7 @@ debug = true
opt-level = 3
lto = "fat"
debug = true
codegen-units = 1
[features]
default = ["testing"]

View file

@ -20,3 +20,4 @@ debug = true
panic = "abort"
lto = true
debug = true
codegen-units = 1

View file

@ -8,14 +8,13 @@ edition = "2021"
[dependencies]
agb = { version = "0.13.0", path = "../../agb" }
bare-metal = "1"
[profile.dev]
opt-level = 2
debug = true
[profile.release]
panic = "abort"
lto = true
debug = true
codegen-units = 1

View file

@ -17,3 +17,4 @@ debug = true
panic = "abort"
lto = true
debug = true
codegen-units = 1