From 37c30586c3998d62c6f6045e23154dc21112ec88 Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 6 May 2023 16:16:18 +0100 Subject: [PATCH 1/3] remove profiles from some projects these projects are not tested or run on the gba or are dependencies and therefore follow the binaries settings --- agb-fixnum/Cargo.toml | 10 ---------- agb-hashmap/Cargo.toml | 10 ---------- agb-image-converter/Cargo.toml | 10 ---------- agb-macros/Cargo.toml | 12 +----------- agb-sound-converter/Cargo.toml | 10 ---------- mgba-test-runner/Cargo.toml | 10 ---------- tools/Cargo.toml | 10 ---------- 7 files changed, 1 insertion(+), 71 deletions(-) diff --git a/agb-fixnum/Cargo.toml b/agb-fixnum/Cargo.toml index 9c336d5b..6a03e727 100644 --- a/agb-fixnum/Cargo.toml +++ b/agb-fixnum/Cargo.toml @@ -8,13 +8,3 @@ repository = "https://github.com/agbrs/agb" [dependencies] agb_macros = { version = "0.15.0", path = "../agb-macros" } - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 diff --git a/agb-hashmap/Cargo.toml b/agb-hashmap/Cargo.toml index c464959a..8e4790ca 100644 --- a/agb-hashmap/Cargo.toml +++ b/agb-hashmap/Cargo.toml @@ -12,13 +12,3 @@ rustc-hash = { version = "1", default-features = false } [dev-dependencies] rand = { version = "0.8", default-features = false, features = ["small_rng"] } lazy_static = "1.4" - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 diff --git a/agb-image-converter/Cargo.toml b/agb-image-converter/Cargo.toml index ea539fcd..8fc7a6bb 100644 --- a/agb-image-converter/Cargo.toml +++ b/agb-image-converter/Cargo.toml @@ -17,13 +17,3 @@ proc-macro2 = "1" quote = "1" asefile = "0.3.5" fontdue = "0.7" - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 diff --git a/agb-macros/Cargo.toml b/agb-macros/Cargo.toml index 7db79f00..3312bae9 100644 --- a/agb-macros/Cargo.toml +++ b/agb-macros/Cargo.toml @@ -13,14 +13,4 @@ proc-macro = true [dependencies] syn = { version = "2", features = ["full", "extra-traits"] } proc-macro2 = "1" -quote = "1" - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 +quote = "1" \ No newline at end of file diff --git a/agb-sound-converter/Cargo.toml b/agb-sound-converter/Cargo.toml index 992afbb8..6968bd90 100644 --- a/agb-sound-converter/Cargo.toml +++ b/agb-sound-converter/Cargo.toml @@ -15,13 +15,3 @@ hound = "3.5" syn = "2" proc-macro2 = "1" quote = "1" - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 diff --git a/mgba-test-runner/Cargo.toml b/mgba-test-runner/Cargo.toml index 58e7839b..4649d2f3 100644 --- a/mgba-test-runner/Cargo.toml +++ b/mgba-test-runner/Cargo.toml @@ -11,13 +11,3 @@ image = { version = "0.24", default-features = false, features = [ "png", "bmp" [build-dependencies] cc = { version = "1", features = ["parallel"] } - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 \ No newline at end of file diff --git a/tools/Cargo.toml b/tools/Cargo.toml index bd6f8ee5..349d7d26 100644 --- a/tools/Cargo.toml +++ b/tools/Cargo.toml @@ -9,13 +9,3 @@ toml_edit = "0.19" glob = "0.3" chrono = "0.4" dependency-graph = "0.1.5" - -[profile.dev] -opt-level = 3 -debug = true - -[profile.release] -opt-level = 3 -lto = "fat" -debug = true -codegen-units = 1 \ No newline at end of file From d638134d37c1edc0c621a66fb7b81d8b2064877c Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 6 May 2023 16:17:47 +0100 Subject: [PATCH 2/3] remove codegen-units these were added as a workaround for rust bugs --- agb/Cargo.toml | 1 - book/games/pong/Cargo.toml | 1 - examples/combo/Cargo.toml | 1 - examples/hyperspace-roll/Cargo.toml | 1 - examples/the-hat-chooses-the-wizard/Cargo.toml | 1 - examples/the-purple-night/Cargo.toml | 1 - template/Cargo.toml | 1 - 7 files changed, 7 deletions(-) diff --git a/agb/Cargo.toml b/agb/Cargo.toml index b2670909..d015d115 100644 --- a/agb/Cargo.toml +++ b/agb/Cargo.toml @@ -34,4 +34,3 @@ debug = true opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/book/games/pong/Cargo.toml b/book/games/pong/Cargo.toml index 7c0dd1d7..ff848be3 100644 --- a/book/games/pong/Cargo.toml +++ b/book/games/pong/Cargo.toml @@ -16,4 +16,3 @@ codegen-units = 1 opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/examples/combo/Cargo.toml b/examples/combo/Cargo.toml index 2c31266e..d08f4096 100644 --- a/examples/combo/Cargo.toml +++ b/examples/combo/Cargo.toml @@ -21,4 +21,3 @@ codegen-units = 1 opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/examples/hyperspace-roll/Cargo.toml b/examples/hyperspace-roll/Cargo.toml index 5557b1a3..4d115f63 100644 --- a/examples/hyperspace-roll/Cargo.toml +++ b/examples/hyperspace-roll/Cargo.toml @@ -16,4 +16,3 @@ codegen-units = 1 opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/examples/the-hat-chooses-the-wizard/Cargo.toml b/examples/the-hat-chooses-the-wizard/Cargo.toml index 18bc73b0..3ed32576 100644 --- a/examples/the-hat-chooses-the-wizard/Cargo.toml +++ b/examples/the-hat-chooses-the-wizard/Cargo.toml @@ -22,4 +22,3 @@ codegen-units = 1 opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/examples/the-purple-night/Cargo.toml b/examples/the-purple-night/Cargo.toml index 0b77cded..343a64df 100644 --- a/examples/the-purple-night/Cargo.toml +++ b/examples/the-purple-night/Cargo.toml @@ -23,4 +23,3 @@ codegen-units = 1 opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/template/Cargo.toml b/template/Cargo.toml index 3cd11cb2..9c50bdbc 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -18,4 +18,3 @@ codegen-units = 1 opt-level = 3 lto = "fat" debug = true -codegen-units = 1 From 6b7088773e39b9c0d61d8cb1b9275100e00f50e5 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 23 May 2023 20:12:42 +0100 Subject: [PATCH 3/3] remove codegen units --- agb-gbafix/Cargo.toml | 1 - book/games/pong/Cargo.toml | 1 - examples/amplitude/Cargo.toml | 2 -- examples/combo/Cargo.toml | 1 - examples/hyperspace-roll/Cargo.toml | 1 - examples/the-hat-chooses-the-wizard/Cargo.toml | 1 - examples/the-purple-night/Cargo.toml | 1 - template/Cargo.toml | 1 - 8 files changed, 9 deletions(-) diff --git a/agb-gbafix/Cargo.toml b/agb-gbafix/Cargo.toml index d45294ca..d59144c2 100644 --- a/agb-gbafix/Cargo.toml +++ b/agb-gbafix/Cargo.toml @@ -22,4 +22,3 @@ debug = true opt-level = 3 lto = "fat" debug = true -codegen-units = 1 diff --git a/book/games/pong/Cargo.toml b/book/games/pong/Cargo.toml index ff848be3..04e26919 100644 --- a/book/games/pong/Cargo.toml +++ b/book/games/pong/Cargo.toml @@ -10,7 +10,6 @@ agb = { version = "0.15.0", path = "../../../agb" } [profile.dev] opt-level = 3 debug = true -codegen-units = 1 [profile.release] opt-level = 3 diff --git a/examples/amplitude/Cargo.toml b/examples/amplitude/Cargo.toml index c82c8496..0a6a5d81 100644 --- a/examples/amplitude/Cargo.toml +++ b/examples/amplitude/Cargo.toml @@ -12,10 +12,8 @@ agb = { version = "0.15.0", path = "../../agb" } [profile.dev] opt-level = 2 debug = true -codegen-units = 1 [profile.release] panic = "abort" lto = true debug = true -codegen-units = 1 diff --git a/examples/combo/Cargo.toml b/examples/combo/Cargo.toml index d08f4096..419b0f79 100644 --- a/examples/combo/Cargo.toml +++ b/examples/combo/Cargo.toml @@ -15,7 +15,6 @@ amplitude = { path = "../amplitude" } [profile.dev] opt-level = 3 debug = true -codegen-units = 1 [profile.release] opt-level = 3 diff --git a/examples/hyperspace-roll/Cargo.toml b/examples/hyperspace-roll/Cargo.toml index 4d115f63..df69b370 100644 --- a/examples/hyperspace-roll/Cargo.toml +++ b/examples/hyperspace-roll/Cargo.toml @@ -10,7 +10,6 @@ agb = { version = "0.15.0", path = "../../agb" } [profile.dev] opt-level = 3 debug = true -codegen-units = 1 [profile.release] opt-level = 3 diff --git a/examples/the-hat-chooses-the-wizard/Cargo.toml b/examples/the-hat-chooses-the-wizard/Cargo.toml index 3ed32576..78a4a8e8 100644 --- a/examples/the-hat-chooses-the-wizard/Cargo.toml +++ b/examples/the-hat-chooses-the-wizard/Cargo.toml @@ -16,7 +16,6 @@ serde_json = "1.0" [profile.dev] opt-level = 3 debug = true -codegen-units = 1 [profile.release] opt-level = 3 diff --git a/examples/the-purple-night/Cargo.toml b/examples/the-purple-night/Cargo.toml index 343a64df..77ef7d19 100644 --- a/examples/the-purple-night/Cargo.toml +++ b/examples/the-purple-night/Cargo.toml @@ -17,7 +17,6 @@ tiled = { version = "0.9.4", default-features = false } [profile.dev] opt-level = 3 debug = true -codegen-units = 1 [profile.release] opt-level = 3 diff --git a/template/Cargo.toml b/template/Cargo.toml index 9c50bdbc..bbd035cf 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -12,7 +12,6 @@ agb = "0.15.0" [profile.dev] opt-level = 3 debug = true -codegen-units = 1 [profile.release] opt-level = 3