Skip to content

Instantly share code, notes, and snippets.

@krishvishal
Last active February 18, 2025 23:50
Show Gist options
  • Save krishvishal/a20ce595055dde388001cf4d2f82db4d to your computer and use it in GitHub Desktop.
Save krishvishal/a20ce595055dde388001cf4d2f82db4d to your computer and use it in GitHub Desktop.
To get VSCode debugger working, add this your rust project's .cargo directory.
[build]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang-17"
ar = "/usr/bin/llvm-ar-17"
rustflags = ["-C", "link-arg=-fuse-ld=lld-17"]
[env]
CC = "/usr/bin/clang-17"
CXX = "/usr/bin/clang++-17"
AR = "/usr/bin/llvm-ar-17"
AS = "/usr/bin/llvm-as-17"
LD = "/usr/bin/lld-17"
CFLAGS = "-fuse-ld=lld-17"
CXXFLAGS = "-fuse-ld=lld-17"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment