diff options
| author | ruki <[email protected]> | 2024-03-22 22:30:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-22 22:30:00 +0800 |
| commit | 5f320b5a8c3e4ee411d602ac8cd43f2d2aca2563 (patch) | |
| tree | bae3568518ca9c23549f2ecfdfe697c8607e07db /xmake/rules/plugin | |
| parent | 1ba52ff1c36ad48a656a881bbc959f944b68e028 (diff) | |
fix headerfiles for autoupdate generator
Diffstat (limited to 'xmake/rules/plugin')
| -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 () |
