diff options
| author | A2va <[email protected]> | 2023-09-30 17:58:56 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-09-30 17:58:56 +0200 |
| commit | 434993362b6c4a6a2f20bd634b71eb4f27221253 (patch) | |
| tree | 69244a043f8bb9d2587ecff0722096cbb16e4985 /xmake/plugins/project/vstudio/impl/vs201x.lua | |
| parent | b637e0acc32faeeda669e135c546999c4a8e0c17 (diff) | |
Fix orderpairs with sourcebatches
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 511494b19..699b5df47 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -213,7 +213,8 @@ function _make_custom_commands(target, vcxprojdir) local commands = {} _make_custom_commands_for_target(commands, target, vcxprojdir, "before") _make_custom_commands_for_target(commands, target, vcxprojdir) - for _, sourcebatch in table.orderpairs(target:sourcebatches()) do + local sourcebatches, _ = target:sourcebatches() + for _, sourcebatch in table.orderpairs(sourcebatches) do local rulename = sourcebatch.rulename local sourcekind = sourcebatch.sourcekind if rulename ~= "c.build" and rulename ~= "c++.build" and rulename ~= "asm.build" and rulename ~= "cuda.build" and sourcekind ~= "mrc" then @@ -281,7 +282,8 @@ function _make_targetinfo(mode, arch, target, vcxprojdir) local firstcompflags = nil targetinfo.compflags = {} targetinfo.compargvs = {} - for _, sourcebatch in table.orderpairs(target:sourcebatches()) do + local sourcebatches, _ = target:sourcebatches() + for _, sourcebatch in table.orderpairs(sourcebatches) do local sourcekind = sourcebatch.sourcekind local rulename = sourcebatch.rulename if sourcekind then |
