From c6a5f1d8520e1166a0d719fe7da37cefd4395cf9 Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:50:31 -0700 Subject: [PATCH] build: Specify optimization flags (#378) In release profile, enable lto and codgen-units = 1 to enable more optimizations. Signed-off-by: Anand Krishnamoorthi --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d8575ce..31bb0bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -144,6 +144,8 @@ anyhow = "1.0" [profile.release] debug = true +lto = true +codegen-units = 1 [[test]] name="opa"