summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/gcc/builder.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-05-16 15:06:02 +0200
committerArthur LAURENT <[email protected]>2025-05-16 15:06:02 +0200
commitafa8d329edd2dda64ed15f29ce1498f7943b32db (patch)
tree942b60b899291df2809da397e0df284d00fcf4b9 /xmake/rules/c++/modules/gcc/builder.lua
parent8fe7c166f84ee0460c79a63f5dc19d4ca77dade1 (diff)
(C++ modules support) fix unitybuild, pch and c++ modules objectfiles conflicts
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)