diff options
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 |
