diff options
| author | Arthur LAURENT <[email protected]> | 2025-05-09 15:49:10 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-05-09 15:56:33 +0200 |
| commit | 465e4dd065f1b6887189b07e29a0307213f7aca9 (patch) | |
| tree | 20e8775b008f681fa84f8431966188edb3c046f1 /xmake/rules/c++/modules/msvc/builder.lua | |
| parent | 3906864766872ec9210f33ef17e6a6d5193d101e (diff) | |
(C++ modules support) fix non named module with module extension not built
Diffstat (limited to 'xmake/rules/c++/modules/msvc/builder.lua')
| -rw-r--r-- | xmake/rules/c++/modules/msvc/builder.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/msvc/builder.lua b/xmake/rules/c++/modules/msvc/builder.lua index eca44fb2d..082bdd71e 100644 --- a/xmake/rules/c++/modules/msvc/builder.lua +++ b/xmake/rules/c++/modules/msvc/builder.lua @@ -239,7 +239,7 @@ function make_module_job(target, module, opt) progress.show(opt.progress, "${color.build.target}<%s> ${clear}${color.build.object}compiling.module.bmi.$(mode) %s", target:fullname(), module.name) _compile_bmi_step(target, module) else - if module.interface or module.implementation then + if support.has_module_extension(module.sourcefile) or module.interface or module.implementation then progress.show(opt.progress, "compiling.$(mode) %s", module.sourcefile) _compile_objectfile_step(target, module) else @@ -271,7 +271,7 @@ function make_module_buildcmds(target, batchcmds, module, opt) batchcmds:show_progress(opt.progress, "${color.build.target}<%s> ${clear}${color.build.object}compiling.module.bmi.$(mode) %s", target:fullname(), module.name) _compile_bmi_step(target, module, {batchcmds = batchcmds}) else - if module.interface or module.implementation then + if support.has_module_extension(module.sourcefile) or module.interface or module.implementation then batchcmds:show_progress(opt.progress, "compiling.$(mode) %s", module.sourcefile) _compile_objectfile_step(target, module, {batchcmds = batchcmds}) else |
