summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc/builder.lua b/xmake/rules/c++/modules/modules_support/gcc/builder.lua
index db0ea3958..7e96c3fcc 100644
--- a/xmake/rules/c++/modules/modules_support/gcc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc/builder.lua
@@ -241,7 +241,7 @@ function make_module_buildjobs(target, batchjobs, job_name, deps, opt)
dependinfo.files = {}
local depvalues = {compinst:program(), compflags}
- if opt.build then
+ if build then
-- compile if it's a named module
if provide or compiler_support.has_module_extension(opt.cppfile) then
progress.show((index * 100) / total, "${color.build.target}<%s> ${clear}${color.build.object}compiling.module.$(mode) %s", target:name(), name or opt.cppfile)