diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f8e11b5a..87f458f5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: aarch64 - args: --profile release-lto --out dist + args: --profile release-lto-thin --out dist - name: Upload wheels uses: actions/upload-artifact@v4 with: diff --git a/Cargo.toml b/Cargo.toml index 2eeb2f098..2c15ff7ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,11 @@ inherits = "release" lto = true codegen-units = 1 +[profile.release-lto-thin] +inherits = "release" +lto = "thin" +codegen-units = 1 + [features] default = []