From 8a924ac8d3a0c40823a5b39c755365a8074a2f62 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Tue, 16 Jul 2024 22:49:16 +0900 Subject: [PATCH] Build release binaries faster (#1343) --- cmd/minify/Cargo.toml | 3 +++ cmd/repl/Cargo.toml | 3 +++ cmd/run/Cargo.toml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/cmd/minify/Cargo.toml b/cmd/minify/Cargo.toml index 8cf69463f..aaf21844a 100644 --- a/cmd/minify/Cargo.toml +++ b/cmd/minify/Cargo.toml @@ -13,3 +13,6 @@ stak-sac = { version = "0.1.45", path = "../../sac", features = ["std"] } [lints] workspace = true + +[profile.release.build-override] +opt-level = 3 diff --git a/cmd/repl/Cargo.toml b/cmd/repl/Cargo.toml index 370e92bfd..2fecdbe12 100644 --- a/cmd/repl/Cargo.toml +++ b/cmd/repl/Cargo.toml @@ -13,3 +13,6 @@ stak-sac = { version = "0.1.45", path = "../../sac", features = ["std"] } [lints] workspace = true + +[profile.release.build-override] +opt-level = 3 diff --git a/cmd/run/Cargo.toml b/cmd/run/Cargo.toml index 8e0765a3e..14949bd79 100644 --- a/cmd/run/Cargo.toml +++ b/cmd/run/Cargo.toml @@ -13,3 +13,6 @@ stak-sac = { version = "0.1.45", path = "../../sac", features = ["std"] } [lints] workspace = true + +[profile.release.build-override] +opt-level = 3