summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/gcc/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-17 22:56:48 +0800
committerGitHub <[email protected]>2025-05-17 22:56:48 +0800
commit8ffb5b9b38a2d9e9c8c09fa68046ca806bfbd9b9 (patch)
tree602125395fbdfb8b1f69d4dd19186eebd03b2fa0 /xmake/rules/c++/modules/gcc/builder.lua
parent941d60a00977e586d98adffee5b22d557c578317 (diff)
parent2f8decdc353f4e18de953c074ae8fed1c0969cda (diff)
Merge pull request #6446 from xmake-io/unitybuild
Fix unitybuild with pch/modules
Diffstat (limited to 'xmake/rules/c++/modules/gcc/builder.lua')
-rw-r--r--xmake/rules/c++/modules/gcc/builder.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/gcc/builder.lua b/xmake/rules/c++/modules/gcc/builder.lua
index 7e207f396..54b47d41c 100644
--- a/xmake/rules/c++/modules/gcc/builder.lua
+++ b/xmake/rules/c++/modules/gcc/builder.lua
@@ -129,7 +129,7 @@ end
function _get_maplines(target, module)
local maplines = {}
- if module.interface or module.implementation then
+ if module.name then
table.insert(maplines, module.name .. " " .. path.absolute(module.bmifile))
end
for dep_name, dep_module in table.orderpairs(module.deps) do
@@ -223,7 +223,7 @@ function make_module_job(target, module, opt)
end
local flags = {"-x", "c++"}
- if support.has_module_extension(module.sourcefile) or module.interface or module.implementation then
+ if support.has_module_extension(module.sourcefile) or module.name then
if bmi then
if objectfile then
table.insert(flags, module_flag)
@@ -270,7 +270,7 @@ function make_module_buildcmds(target, batchcmds, module, opt)
end
local flags = {"-x", "c++"}
- if support.has_module_extension(module.sourcefile) or module.interface or module.implementation then
+ if support.has_module_extension(module.sourcefile) or module.name then
if bmi then
if objectfile then
table.insert(flags, module_flag)