From 8225f2a79361590b3f6b1e9a819275f18d6e32a1 Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Wed, 7 Aug 2024 16:37:05 +0000 Subject: [PATCH] Add path prefixes back when compiling `clippy_dev` and `lintcheck` --- .cargo/config.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 7afdd068a990..ce07290d1e1e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -13,6 +13,13 @@ target-dir = "target" [unstable] binary-dep-depinfo = true +profile-rustflags = true [profile.dev] split-debuginfo = "unpacked" + +# Add back the containing directory of the packages we have to refer to using --manifest-path +[profile.dev.package.clippy_dev] +rustflags = ["--remap-path-prefix", "=clippy_dev"] +[profile.dev.package.lintcheck] +rustflags = ["--remap-path-prefix", "=lintcheck"]