summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-02-04 16:47:25 +0100
committerArthur LAURENT <[email protected]>2024-02-04 16:47:25 +0100
commit2728a2c821de5fb2e9567fea74ca38a81e5cfea0 (patch)
tree93676003b0e1a2e6bdb5d16f09d640d48181c4c3
parente5f820e4f187e2a87db4b88c76cc2ac3da2b24d7 (diff)
fix gcc module compilation
-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)