summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-20 11:14:26 +0800
committerruki <[email protected]>2021-02-20 11:14:26 +0800
commit3749765647847d0c0155f34dde8d1e32447b87b9 (patch)
treea2f3231ecfefeda9f20a72569e21e1f414953137 /xmake/plugins
parent5f25a00cd3f3708ad133dbd1c376cfdd34a3de94 (diff)
add tip and progress tip
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index 1d3f02b6d..41d83bd57 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -102,7 +102,9 @@ function _make_commands_for_objectrules(jsonfile, target, sourcebatch, suffix)
script(target, batchcmds_, sourcebatch, {})
if not batchcmds_:empty() then
for _, cmd in ipairs(batchcmds_:cmds()) do
- _make_arguments(jsonfile, table.join(cmd.program, cmd.argv))
+ if cmd.program then
+ _make_arguments(jsonfile, table.join(cmd.program, cmd.argv))
+ end
end
end
end
@@ -118,7 +120,9 @@ function _make_commands_for_objectrules(jsonfile, target, sourcebatch, suffix)
script(target, batchcmds_, sourcefile, {})
if not batchcmds_:empty() then
for _, cmd in ipairs(batchcmds_:cmds()) do
- _make_arguments(jsonfile, table.join(cmd.program, cmd.argv))
+ if cmd.program then
+ _make_arguments(jsonfile, table.join(cmd.program, cmd.argv))
+ end
end
end
end