summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-04 22:44:24 +0800
committerruki <[email protected]>2022-08-04 22:44:24 +0800
commit78a52f5c6238dd163e90c2b8bb6f1fc82b0a86a7 (patch)
tree9691556825df5eb8ead972207db5ef3141c90b34 /xmake/rules/c++/modules/modules_support/gcc.lua
parent4e95000424f80810f2a7af5444a1a07c712057ff (diff)
fix module flags for msvc/clang
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index e10bb0433..74e2a708e 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -54,8 +54,6 @@ end
-- load module support for the current target
function load(target)
- local compinst = compiler.load("cxx", {target = target})
-
local modulesflag = get_modulesflag(target)
local modulemapperflag = get_modulemapperflag(target)
@@ -161,7 +159,7 @@ function generate_headerunits(target, batchcmds, sourcebatch, opt)
os.mkdir(outdir)
end
- local bmifilename = path.basename(objectfile) .. bmi_extension()
+ local bmifilename = path.basename(objectfile) .. get_bmi_extension()
local bmifile = (outdir and path.join(outdir, bmifilename) or bmifilename)
if not os.isdir(path.directory(objectfile)) then
@@ -186,7 +184,7 @@ function generate_headerunits(target, batchcmds, sourcebatch, opt)
batchcmds:set_depcache(target:dependfile(bmifile))
end
else
- local bmifile = path.join(stlcachedir, headerunit.name .. bmi_extension())
+ local bmifile = path.join(stlcachedir, headerunit.name .. get_bmi_extension())
if add_module_to_mapper(mapper_file, headerunit.path, path.absolute(bmifile, project.directory())) then
if not os.isfile(bmifile) then