summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc/builder.lua1
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc/builder.lua2
2 files changed, 0 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc/builder.lua b/xmake/rules/c++/modules/modules_support/gcc/builder.lua
index 7b382e130..d9ae60097 100644
--- a/xmake/rules/c++/modules/modules_support/gcc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc/builder.lua
@@ -98,7 +98,6 @@ function _batchcmds_compile(batchcmds, target, flags, sourcefile)
end
function _module_map_cachekey(target)
-
local mode = config.mode()
return target:name() .. "module_mapper" .. (mode or "")
end
diff --git a/xmake/rules/c++/modules/modules_support/msvc/builder.lua b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
index 7fc25a0a0..83d9513f2 100644
--- a/xmake/rules/c++/modules/modules_support/msvc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
@@ -39,7 +39,6 @@ function _make_modulebuildflags(target, provide, bmifile, sourcefile, objectfile
local ifconlyflag = compiler_support.get_ifconlyflag(target)
local interfaceflag = compiler_support.get_interfaceflag(target)
local internalpartitionflag = compiler_support.get_internalpartitionflag(target)
-
local objectfile_or_ifconlyflag = (opt.external and ifconlyflag) and ifconlyflag or "-Fo" .. objectfile
local flags
@@ -48,7 +47,6 @@ function _make_modulebuildflags(target, provide, bmifile, sourcefile, objectfile
else
flags = {"-TP", objectfile_or_ifconlyflag, "-c", sourcefile}
end
-
return flags
end