From 3d4e5b8db0db6fba89491f4d361c13d4d84fcd54 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Mon, 22 Sep 2025 00:36:15 +0300 Subject: [PATCH] fix(ci): Don't build native-cpu release binaries --- .cargo/config.toml | 2 -- Cargo.toml | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index ddff4407b..000000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build] -rustflags = ["-C", "target-cpu=native"] diff --git a/Cargo.toml b/Cargo.toml index 785d5621a..2ae20f36f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,6 @@ cliclack = "0.3.6" console = "0.15.11" ctrlc = "3.4.5" fast-float = "0.2.0" -fast_float = "0.2.0" hashbrown = "0.16.0" lexical = { version = "7.0.4", default-features = false, features = [ "std", @@ -54,8 +53,14 @@ wtf8 = "0.1" [workspace.metadata.dylint] libraries = [{ path = "nova_lint" }] +# The release profile, used for `cargo build --release`. [profile.release] -lto = true +# Enables "fat" LTO, for faster release builds +lto = "fat" +# Makes sure that all code is compiled together, for LTO +codegen-units = 1 +# Strips debug information and symbols from the binary, reducing its size +strip = "symbols" # This profile has all the same safety checks as dev builds. It trades slightly # longer compile times for faster runs, which is worth it when running test262.