summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-05 00:46:31 +0800
committerruki <[email protected]>2022-08-05 00:46:31 +0800
commit65a9b356196552f35a1414691a3f328cc3152bff (patch)
tree16d4a6932e34a81b8149bbb95fcd3e03cdb52ea1 /xmake/rules/c++/modules/modules_support
parent88c91ec3ff285ba148a04a01e8e32bdf2b186dc5 (diff)
add mapper comments
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index e46ff6d7f..2b21a7091 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -37,6 +37,11 @@ function _get_module_mapper()
end
-- add a module or header unit into the mapper
+--
+-- e.g
+-- /usr/include/c++/11/iostream build/.gens/stl_headerunit/linux/x86_64/release/stlmodules/cache/iostream.gcm
+-- hello build/.gens/stl_headerunit/linux/x86_64/release/rules/modules/cache/hello.gcm
+--
function _add_module_to_mapper(file, module, bmi)
for line in io.lines(file) do
if line:startswith(module .. " ") then