summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchooyy <[email protected]>2026-06-24 14:28:23 +0800
committerchooyy <[email protected]>2026-06-24 14:28:23 +0800
commit78efcedd2be459d02cd7758badd0dcca8b77e053 (patch)
tree839e21e2910706482a69778b7069b38b92e0a257
parent8d706cb5bb681a2a06492ded4dd81faf6c5249e5 (diff)
update
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index db759f54c..d4b2b738f 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -211,8 +211,8 @@ function _make_arguments(jsonfile, arguments, opt)
-- make body
local projectdir = os.projectdir()
- if is_host("windows") then -- workaround for drive letter casing issue, can be removed when cland resolves https://github.com/clangd/vscode-clangd/pull/747
- projectdir = projectdir:gsub("^([A-Z]):", function(d) return d:lower() .. ":" end)
+ if is_host("windows") then -- workaround for drive letter casing issue, can be removed when clangd resolves https://github.com/clangd/vscode-clangd/pull/747
+ projectdir = projectdir:gsub("^[A-Z]:", string.lower)
end
jsonfile:printf(
[[%s{