From 6ee264a04960d16bb012c0c5f03392d2e070488c Mon Sep 17 00:00:00 2001 From: Cai Bear Date: Fri, 14 Jul 2023 13:57:08 -0700 Subject: [PATCH] [no-bench] Put release profile in config.toml to avoid issues with workspace. --- Cargo.toml | 5 ----- pages/.cargo/config.toml | 13 ++++++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 32b8a2f..2bc22df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/pages/.cargo/config.toml b/pages/.cargo/config.toml index 44c6cde..28b4658 100644 --- a/pages/.cargo/config.toml +++ b/pages/.cargo/config.toml @@ -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"]