summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua3
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua3
2 files changed, 1 insertions, 5 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index 9882e5805..3f377a531 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -107,8 +107,7 @@ function _build_modulefile(target, sourcefile, opt)
local objectfile = opt.objectfile
local dependfile = opt.dependfile
local compinst = compiler.load("cxx", {target = target})
- local modulemapperflag = get_modulemapperflag(target)
- local compflags = table.join("-x", "c++", modulemapperflag .. path.translate(_get_module_mapper(target)), compinst:compflags({target = target}))
+ local compflags = table.join("-x", "c++", compinst:compflags({target = target}))
local dependinfo = option.get("rebuild") and {} or (depend.load(dependfile) or {})
-- need build this object?
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 756f19703..5e56b1241 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -732,9 +732,6 @@ function get_requiresflags(target, requires, opt)
table.join2(flags, modulemap_[name].flag)
table.join2(flags, modulemap_[name].deps or {})
already_mapped_modules[name] = true
- if os.isfile(modulemap_[name].objectfile) then
- _add_objectfile_to_link_arguments(target, modulemap_[name].objectfile)
- end
goto continue
end
end