Skip to content

Commit

Permalink
add vscode-clang-tutor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuzhiy05 committed Nov 6, 2024
1 parent ae5d429 commit 47f7570
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/tools/vscode_clang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# vscode搭配clang

这次同样使用的是阳教授自己编译的clang.
1.首先是下载,解压(注意使用管理员权限解压)
[下载链接](https://github.com/trcrsired/llvm-releases)
2.将`/.../llvm/bin``/.../x86_64-windows-gnu/bin` 路径添加到用户`path`
3.安装clangd插件
4.测试一下
`clang++ -o hello.exe hello.cpp --target=x86_64-windows-msvc --sysroot=系统根路径 -fuse-ld=lld -D_DLL=1 -lmsvcrt -O3 -flto=thin
-stdlib=libc++`

0 comments on commit 47f7570

Please sign in to comment.