diff options
| -rw-r--r-- | xmake/rules/plugin/compile_commands/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/plugin/vsxmake/xmake.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/plugin/compile_commands/xmake.lua b/xmake/rules/plugin/compile_commands/xmake.lua index 7aefc0862..06e7e67a1 100644 --- a/xmake/rules/plugin/compile_commands/xmake.lua +++ b/xmake/rules/plugin/compile_commands/xmake.lua @@ -51,7 +51,7 @@ rule("plugin.compile_commands.autoupdate") local lsp local sourcefiles = {} for _, target in pairs(project.targets()) do - table.join2(sourcefiles, target:sourcefiles(), target:headerfiles()) + table.join2(sourcefiles, target:sourcefiles(), (target:headerfiles())) local extraconf = target:extraconf("rules", "plugin.compile_commands.autoupdate") if extraconf then outputdir = extraconf.outputdir diff --git a/xmake/rules/plugin/vsxmake/xmake.lua b/xmake/rules/plugin/vsxmake/xmake.lua index 50139010e..421f98cc1 100644 --- a/xmake/rules/plugin/vsxmake/xmake.lua +++ b/xmake/rules/plugin/vsxmake/xmake.lua @@ -50,7 +50,7 @@ rule("plugin.vsxmake.autoupdate") if os.getenv("XMAKE_IN_VSTUDIO") and not os.getenv("XMAKE_IN_XREPO") then local sourcefiles = {} for _, target in pairs(project.targets()) do - table.join2(sourcefiles, target:sourcefiles(), target:headerfiles()) + table.join2(sourcefiles, target:sourcefiles(), (target:headerfiles())) end table.sort(sourcefiles) depend.on_changed(function () |
