summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-08 00:49:56 +0800
committerruki <[email protected]>2022-12-08 00:49:56 +0800
commit8c3b2f5d51c4f4cb27c2daee16096837fab9a574 (patch)
treee5367a45f4963d2c6325b1641de0a34ef86df3c7 /xmake/rules/c++/modules/modules_support/gcc.lua
parent9852dfa6c2b4585565accc4e50f4a9cada41350c (diff)
format code
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index 8912bb60e..9882e5805 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -55,13 +55,13 @@ function _add_module_to_mapper(file, module, bmi)
return true
end
+-- get a module from mapper
function _get_module_from_mapper(file, module)
for line in io.lines(file) do
if line:startswith(module .. " ") then
return line:split(" ", {plain = true})
end
end
- return nil
end
-- load module support for the current target
@@ -584,4 +584,4 @@ function get_cppversionflag(target)
_g.cppversionflag = cppversionflag
end
return cppversionflag or nil
-end \ No newline at end of file
+end