From 10f034171f891ace6f7bc824e31d3c84750c1331 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Thu, 29 Jun 2023 11:04:13 +0200 Subject: [PATCH] chore(ci): LTO is causing issues in M1 CI tests use LTO off instead --- .github/workflows/m1_tests.yml | 1 + Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/m1_tests.yml b/.github/workflows/m1_tests.yml index 15ea0a580..1278da17d 100644 --- a/.github/workflows/m1_tests.yml +++ b/.github/workflows/m1_tests.yml @@ -15,6 +15,7 @@ env: CARGO_TERM_COLOR: always RUSTFLAGS: "-C target-cpu=native" ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + CARGO_PROFILE: release_lto_off concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} diff --git a/Cargo.toml b/Cargo.toml index ffa7b77ac..847933b96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,10 @@ lto = "fat" [profile.release] lto = "fat" +[profile.release_lto_off] +inherits = "release" +lto = "off" + # Compiles much faster for tests and allows reasonable performance for iterating [profile.devo] inherits = "dev"