diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-03 03:30:59 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-03 03:30:59 +0100 |
| commit | bf2256fbfafd21a3087ad40d93edfe92ec3dee9a (patch) | |
| tree | 7557778e2c428c77388645db49053275a31b68d4 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | dd233c5b036b37994b661ef61387cdb3f67eb252 (diff) | |
refactor clang batchcmds
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index a94820b4a..904ef82c6 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -457,6 +457,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op if length > 1 then raise("multiple provides are not supported now!") end + break end end local moduleinfo = table.copy(provide) or {} @@ -524,9 +525,14 @@ function build_modules_for_batchcmds(target, batchcmds, objectfiles, modules, op if module then if module.provides then local name, provide + local length = 0 for k, v in pairs(module.provides) do + length = length + 1 name = k provide = v + if length > 1 then + raise("multiple provides are not supported now!") + end break end |
