summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/msvc/builder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules/msvc/builder.lua')
-rw-r--r--xmake/rules/c++/modules/msvc/builder.lua4
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