From a90e5cc9af1fcf7897194ac6a275407dc54db689 Mon Sep 17 00:00:00 2001
From: Alex Macleod <alex@macleod.io>
Date: Fri, 17 Mar 2023 13:43:32 +0000
Subject: [PATCH] Use split-debuginfo = "unpacked" for debug builds

---
 .cargo/config.toml                | 3 +++
 .github/workflows/clippy_bors.yml | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/.cargo/config.toml b/.cargo/config.toml
index f3dd9275a42..4d80d3ce63d 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -11,3 +11,6 @@ target-dir = "target"
 
 [unstable]
 binary-dep-depinfo = true
+
+[profile.dev]
+split-debuginfo = "unpacked"
diff --git a/.github/workflows/clippy_bors.yml b/.github/workflows/clippy_bors.yml
index 24e677ce8e1..93198aabdb5 100644
--- a/.github/workflows/clippy_bors.yml
+++ b/.github/workflows/clippy_bors.yml
@@ -180,6 +180,8 @@ jobs:
 
     # Run
     - name: Build Integration Test
+      env:
+        CARGO_PROFILE_DEV_SPLIT_DEBUGINFO: off
       run: cargo test --test integration --features integration --no-run
 
     # Upload