From 5f320b5a8c3e4ee411d602ac8cd43f2d2aca2563 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 22 Mar 2024 22:30:00 +0800 Subject: fix headerfiles for autoupdate generator --- xmake/rules/plugin/compile_commands/xmake.lua | 2 +- 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 () -- cgit v1.3.1