diff options
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index c1c0e76cf..484076521 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -470,7 +470,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op dependfile = target:dependfile(provide.bmi) local fileconfig = target:fileconfig(provide.sourcefile) - if fileconfig and fileconfig.values and fileconfig.values["msvc.internalpartition"] then + if not provide.interface then assert(internalpartitionflag, "/internalPartition not supported !") table.insert(flags, internalpartitionflag) elseif provide.interface then @@ -559,7 +559,7 @@ function build_modules_for_batchcmds(target, batchcmds, objectfiles, modules, op table.join2(flags, {ifcoutputflag, path(provide.bmi)}) local fileconfig = target:fileconfig(cppfile) - if fileconfig and fileconfig.values and fileconfig.values["msvc.internalpartition"] then + if not provide.interface then assert(internalpartitionflag, "/internalPartition not supported !") table.insert(flags, internalpartitionflag) elseif provide.interface then |
