Skip to content

Commit b1a7ceb

Browse files
committed
improve compile command
1 parent 4a381cd commit b1a7ceb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xmake/plugins/project/clang/compile_commands.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ function _translate_arguments(arguments)
3737
local cc = path.basename(arguments[1]):lower()
3838
local is_include = false
3939
for idx, arg in ipairs(arguments) do
40+
-- convert path to string, maybe we need convert path, but not supported now.
41+
arg = tostring(arg)
42+
4043
-- see https://github.com/xmake-io/xmake/issues/1721
4144
if idx == 1 and is_host("windows") and path.extension(arg) == "" then
4245
arg = arg .. ".exe"

0 commit comments

Comments
 (0)