diff options
| author | ruki <[email protected]> | 2022-12-25 17:01:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-25 17:01:42 +0800 |
| commit | 3cb3727b67b20187d04be2270c493d4ce6c6924f (patch) | |
| tree | 5dd898eb2baa9c259f11ed04e384e773f81a5c96 /xmake/plugins | |
| parent | 356e329b95274646056c3002ac272a187953e53d (diff) | |
fix compile_commands
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/clang/compile_commands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua index e7207d094..88c72e09a 100644 --- a/xmake/plugins/project/clang/compile_commands.lua +++ b/xmake/plugins/project/clang/compile_commands.lua @@ -90,7 +90,7 @@ function _translate_arguments(arguments) if arg then -- split "/usr/bin/xcrun -sdk macosx clang" -- @see https://github.com/xmake-io/xmake/issues/3159 - if idx == 1 and arg:find(" ", 1, true) then + if idx == 1 and not os.isfile(arg) and arg:find(" ", 1, true) then table.join2(args, os.argv(arg)) else table.insert(args, arg) |
