You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# xmake project -k compile_commands -vD
checking for cl.exe ... D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checkinfo: cannot runv(dmd.exe --version), No such file or directory
checking for dmd ... no
checkinfo: cannot runv(ldc2.exe --version), No such file or directory
checking for ldc2 ... no
checkinfo: cannot runv(gdc.exe --version), No such file or directory
checking for gdc ... no
checking for zig ... ok
checkinfo: BusyBox v1.36.0-FRP-4784-g5507c8744 (2022-11-09 08:26:33 GMT)
Usage: unzip [-lnojpq] FILE[.zip] [FILE]... [-x FILE]... [-d DIR]
Extract FILEs from ZIP archive
-l List contents (with -q for short form)
-n Never overwrite files (default: ask)
-o Overwrite
-j Do not restore paths
-p Write to stdout
-t Test
-q Quiet
-x FILE Exclude FILEs
-d DIR Extract into DIR
checking for unzip ... no
checking for 7z ... D:\Applications\apps\xmake\current\winenv\bin\7z
checking for git ... ok
checkinfo: BusyBox v1.36.0-FRP-4784-g5507c8744 (2022-11-09 08:26:33 GMT)
Usage: gzip [-cfkdt123456789] [FILE]...
Compress FILEs (or stdin)
-1..9 Compression level
-d Decompress
-c Write to stdout
-f Force
-k Keep input files
-t Test integrity
D:\Applications\apps\busybox\current\busybox.exe: unknown option -- version
checking for gzip ... no
git rev-parse HEAD
finding quickjs from xmake ..
checking for xmake::quickjs ... quickjs 2021.03.27
checking for link.exe ... D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
configure
{
kind = static
vs = 2022
proxy_mac = github.com
plat = windows
ndk_stdcxx = true
ccache = true
proxy = http://127.0.0.1:10809
mode = release
mingw = D:/Program Files/MinGW
menu = true
host = windows
proxy_pac = pac.lua
arch = x64
network = public
pkg_searchdirs = D:\Applications\xmake\pkg
buildir = build
}
checking for cl.exe ... D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checking for D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\cl.exe ... ok
checking for flags (-std:c++20) ... ok
> cl.exe "-std:c++20"
checking for flags (cl_external_includedir) ... ok
> cl.exe "-external:W0" "-external:ID:\Applications\xmake\.packages\q\quickjs\2021.03.27\f1b22ee58676472fbbdd27d79b0a95b0\include"
create ok!
The text was updated successfully, but these errors were encountered:
Xmake 版本
2.7.4
操作系统版本和架构
Windows
描述问题
在 compile_commands 中,如果编译器路径被断开时,vscode的clangd会无法正常工作。
我记得 xmake 在以往版本的 compile_commands 生成中,编译器路径是不会被断开的,所以那个时候我vscode的clangd也工作正常。
复现项目框架:
现版本 xmake 生成的 compile_commands:
手动修改后 (以往版本的 xmake 生成):
期待的结果
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: