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/gcc/builder.lua | |
| parent | 3906864766872ec9210f33ef17e6a6d5193d101e (diff) | |
(C++ modules support) fix non named module with module extension not built
Diffstat (limited to 'xmake/rules/c++/modules/gcc/builder.lua')
| -rw-r--r-- | xmake/rules/c++/modules/gcc/builder.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/gcc/builder.lua b/xmake/rules/c++/modules/gcc/builder.lua index 2d202d699..15cd3a85b 100644 --- a/xmake/rules/c++/modules/gcc/builder.lua +++ b/xmake/rules/c++/modules/gcc/builder.lua @@ -186,7 +186,7 @@ function make_module_job(target, module, opt) end local flags = {"-x", "c++"} - if module.interface or module.implementation then + if support.has_module_extension(module.sourcefile) or module.interface or module.implementation then if bmi and objectfile then progress.show(opt.progress, "${color.build.target}<%s> ${clear}${color.build.object}compiling.module.$(mode) %s", target:fullname(), module.name) table.insert(flags, module_flag) @@ -237,7 +237,7 @@ function make_module_buildcmds(target, batchcmds, module, opt) batchcmds:show("mapper file for %s --------\n%s--------", module.sourcefile, io.readfile(module_mapper)) end end - if support.has_module_extension(module.sourcefile) then + if support.has_module_extension(module.sourcefile) or module.interface or module.implementation then batchcmds:mkdir(path.directory(module.objectfile)) local flags = {"-x", "c++"} table.insert(flags, module_flag) |
