diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-03 02:16:08 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-03 02:16:08 +0100 |
| commit | dd233c5b036b37994b661ef61387cdb3f67eb252 (patch) | |
| tree | c04a1f41cc3942aaef3e3b80ead41b3f83950793 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 9129440bc0f65f7aea3ddd1fbfe4c977bac5eaac (diff) | |
refactor clang
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index 9945185e6..a94820b4a 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -460,6 +460,15 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op end end local moduleinfo = table.copy(provide) or {} + local flags = {"-TP"} + table.join2(flags, (provide and provide.interface) and interfaceflag or {}) + local dependfile = target:dependfile(objectfile) + + if provide then + table.join2(flags, {ifcoutputflag, provide.bmi}) + dependfile = target:dependfile(provide.bmi) + end + table.join2(moduleinfo, { name = name or cppfile, deps = table.keys(module.requires or {}), @@ -471,16 +480,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op if module.requires then requiresflags = get_requiresflags(target, module.requires, {expand = true}) end - - local flags = {"-TP"} table.join2(flags, requiresflags or {}) - table.join2(flags, (provide and provide.interface) and interfaceflag or {}) - - local dependfile = target:dependfile(objectfile) - if provide then - table.join2(flags, {ifcoutputflag, provide.bmi}) - dependfile = target:dependfile(provide.bmi) - end if provide or common.has_module_extension(cppfile) then _build_modulefile(target, cppfile, { |
