summary refs log tree commit diff
path: root/pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch')
-rw-r--r--pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch b/pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch
index 300f8cd96ef..e95df0a9cef 100644
--- a/pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch
+++ b/pkgs/misc/vscode-extensions/vscode-lldb/reset-cargo-config.patch
@@ -1,11 +1,19 @@
+diff --git a/.cargo/config b/.cargo/config
+index c3c75e4..e69de29 100644
 --- a/.cargo/config
 +++ b/.cargo/config
-@@ -1,8 +0,0 @@
+@@ -1,14 +0,0 @@
 -[build]
 -target-dir = "build/target"
 -
 -[target.armv7-unknown-linux-gnueabihf]
--linker = "arm-linux-gnueabihf-gcc"
+-rustflags = [
+-    "-C", "link-arg=-fuse-ld=lld",
+-    "-C", "link-arg=--target=armv7-unknown-linux-gnueabihf",
+-]
 -
 -[target.aarch64-unknown-linux-gnu]
--linker = "aarch64-linux-gnu-gcc"
+-rustflags = [
+-    "-C", "link-arg=-fuse-ld=lld",
+-    "-C", "link-arg=--target=aarch64-unknown-linux-gnu",
+-]